Closed virgil2019 closed 1 year ago
Here I use the example code ERC20.
ERC20
cargo contract build
Deploy the contract on the polkadot.js/apps
Call the method totalSupply, transfer.
totalSupply
transfer
Call failed with errer "Out Of Gas"
4.0.0.alpha.3, 2.0.0.alpha.3 and node 0.20 worked well for me
polkadot.js/apps is incompatible with newer versions of the contracts pallet. Use either cargo contract or ContractsUI.
cargo contract
Reason is the switch to WeightsV2.
Environment
Contracts
Here I use the example code
ERC20
.Operations
Build
Deploy
Deploy the contract on the polkadot.js/apps
Call
Call the method
totalSupply
,transfer
.Result
Call failed with errer "Out Of Gas"
4.0.0.alpha.3, 2.0.0.alpha.3 and node 0.20 worked well for me