Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Not implemented _ashlti3 #2

Open
PocelowannyNebescami opened this issue Jul 18, 2024 · 0 comments
Open

Error: Not implemented _ashlti3 #2

PocelowannyNebescami opened this issue Jul 18, 2024 · 0 comments

Comments

@PocelowannyNebescami
Copy link

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.wat

Unfortunately, the smart contract is too long to include here. So if you have any specific questions about it, please let me know. I will do my best to answer them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant