2

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?

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Moebius
  • 6,242
  • 7
  • 42
  • 54

1 Answers1

2

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
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Moebius
  • 6,242
  • 7
  • 42
  • 54