Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

XVM - WASM - estimated gas too high #111

Open
PierreOssun opened this issue Nov 2, 2022 · 1 comment
Open

XVM - WASM - estimated gas too high #111

PierreOssun opened this issue Nov 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@PierreOssun
Copy link
Member

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 PierreOssun added the bug Something isn't working label Nov 2, 2022
@Dinonard
Copy link
Member

Dinonard commented Nov 3, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants