fix(avm-client)!: this fixes the last argument type for WASM module 'invoke' function (#824)

This commit is contained in:
raftedproc 2024-02-26 14:40:35 +03:00 committed by GitHub
parent a600c1735c
commit 2bffc27a86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -122,7 +122,7 @@ jobs:
- avm
- nox-snapshot
uses: fluencelabs/js-client/.github/workflows/tests.yml@master
uses: fluencelabs/js-client/.github/workflows/tests.yml@main
with:
avm-version: "${{ needs.avm.outputs.version }}"
nox-image: "${{ needs.nox-snapshot.outputs.nox-image }}"
@ -131,7 +131,7 @@ jobs:
needs:
- avm
uses: fluencelabs/js-client/.github/workflows/snapshot.yml@master
uses: fluencelabs/js-client/.github/workflows/snapshot.yml@main
with:
avm-version: "${{ needs.avm.outputs.version }}"

View File

@ -26,7 +26,7 @@ const tetrapletRepr = new MsgPackRepr();
// Have to match the air-interpreter-interface.
const callResultsRepr = new MulticodecRepr(new MsgPackRepr());
//
const defaultAquaVMRuntimeMemoryLimit = Number("4294967296");
const defaultAquaVMRuntimeMemoryLimit = 4294967296;
/**
* Encodes arguments into JSON array suitable for marine-js
@ -66,7 +66,7 @@ export function serializeAvmArgs(
air_size_limit: defaultAquaVMRuntimeMemoryLimit,
particle_size_limit: defaultAquaVMRuntimeMemoryLimit,
call_result_size_limit: defaultAquaVMRuntimeMemoryLimit,
hard_limit_enabled: defaultAquaVMRuntimeMemoryLimit,
hard_limit_enabled: false,
};
return [air, Array.from(prevData), Array.from(data), runParamsSnakeCase, Array.from(encodedCallResults)];