-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Environment:
- NodeJS v18.16.0
- vert v1.0.0
- chai v5.1.1
- mocha v10.4.0
- Antelope cdt v4.0.1
- wabt v1.0.13
Description
I have added unit tests for my smart contract using vert, mocha and chai. When running them, they always fail with the error Not implemented _ashlti3. Here is call stack:
Error: Not implemented _ashlti3
at __ashlti3 (node_modules/@eosnetwork/vert/dist/antelope/vm.js:1123:42)
at wasm://wasm/0005da7e:wasm-function[95]:0x333f
at wasm://wasm/0005da7e:wasm-function[238]:0x14c33
at wasm://wasm/0005da7e:wasm-function[97]:0x338b
at wasm://wasm/0005da7e:wasm-function[161]:0xdd0a
at wasm://wasm/0005da7e:wasm-function[50]:0x6ca
at VM.apply (node_modules/@eosnetwork/vert/dist/antelope/vm.js:1443:35)
at Blockchain.applyTransactionActions (node_modules/@eosnetwork/vert/dist/antelope/blockchain.js:92:37)
at Blockchain.applyTransaction (node_modules/@eosnetwork/vert/dist/antelope/blockchain.js:113:18)
at async Object.send (node_modules/@eosnetwork/vert/dist/antelope/account.js:96:25) To export memory i use wabt, which is called with script from official documentation:
wasm2wat FILENAME.wasm | sed -e 's|(memory |(memory (export "memory") |' > TMP_FILE.wat
wat2wasm -o FILENAME.wasm TMP_FILE.wat
rm TMP_FILE.watMetadata
Metadata
Assignees
Labels
No labels