Skip to content

Commit

Permalink
fix(avm-client)!: this fixes the last argument type for WASM module '…
Browse files Browse the repository at this point in the history
…invoke' function (#824)
  • Loading branch information
raftedproc authored Feb 26, 2024
1 parent a600c17 commit 2bffc27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"

Expand Down
4 changes: 2 additions & 2 deletions avm/client/src/avmHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)];
Expand Down

0 comments on commit 2bffc27

Please sign in to comment.