paritytech / substrate-contracts-node

Minimal Substrate node configured for smart contracts via pallet-contracts.
The Unlicense
124 stars 145 forks source link

Error "OutOfGas" occurred when calling contracts with the newest version #164

Closed virgil2019 closed 1 year ago

virgil2019 commented 1 year ago

Environment

Contracts

Here I use the example code ERC20.

Operations

Build

cargo contract 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

athei commented 1 year ago

polkadot.js/apps is incompatible with newer versions of the contracts pallet. Use either cargo contract or ContractsUI.

Reason is the switch to WeightsV2.