astar-frame icon indicating copy to clipboard operation
astar-frame copied to clipboard

XVM - WASM - estimated gas too high

Open PierreOssun opened this issue 3 years ago • 1 comments

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

PierreOssun avatar Nov 02 '22 16:11 PierreOssun

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.

Dinonard avatar Nov 03 '22 15:11 Dinonard