AstarNetwork / astar-frame

Core frame modules for Astar & Shiden network.
Other
58 stars 38 forks source link

XVM - WASM - estimated gas too high #111

Open PierreOssun opened 1 year ago

PierreOssun commented 1 year ago

Description

When I want to do an XVM call using XVM chain-extension in a wasm contract. the estimated gas is too high (and execute button is grayed - thus impossible to execute the tx). When I edit this estimated gas and reduce it from 500% to 50% the call works. so it is an estimated gas issue only.

Screenshot from 2022-11-02 10-59-11

Dinonard commented 1 year ago

I'm not sure this is a bug in XVM pallet - you're getting this from polkadot-js app.

If I understand correctly, dry-run is performed and gasRequired is extracted from the exec result. So it shouldn't be possible for gas required to exceed the block limit.