I created a smart contract and I want to test it using the mandos framework. When I run the erdpy contract test
, it fails with the following command output:
Output: Scenario: contract-deploy.scen.json ... FAIL: result code mismatch. Tx 1. Want: 0. Have: 9 (contract invalid). Message: invalid contract code
How to solve that issue?
If you get invalid contract code, you can update your arwen version by:
erdpy config set dependencies.arwentools.tag v1.4.21
erdpy deps install arwentools --overwrite
And finally, if compilation fails with some weird messages, make sure to update your Rust installation:
erdpy deps install rust --overwrite