casper-ecosystem / cep18

Implementation of ERC20 token for the CasperLabs platform.
https://casper.network/docs/dapp-dev-guide
Apache License 2.0
26 stars 47 forks source link

CEP18 / RC3 Migration / Invalid Argument (Some(u8)) #149

Open RBYGLLS opened 3 weeks ago

RBYGLLS commented 3 weeks ago

When events_mode is passed as Some(u8) -> "error_message": "User error: 60006", InvalidEventsMode .

casper-client put-deploy --chain-name casper-jiuhong-test-jh \ -n http://172.142.106.150:7777 \ --payment-amount 350000000000 \ --session-path /home/ubuntu/caspereco/cep18/target/wasm32-unknown-unknown/release/cep18.wasm \ --session-arg "name:string='TEST6_CEP18'" \ --session-arg "events_mode:opt_u8='0'" \ --secret-key /home/ubuntu/keys/test0/secret_key.pem

Link to issue reported in Slack: https://casper-labs-team.slack.com/archives/C01ULKL8G8J/p1719909754693599

Another observation when installing contract: Even though the deployment returned error message "error_message": "ApiError::InvalidArgument [3]" ---> the contract is installed successfully under package.