Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update gno dependency and add EstimateGas API function #195

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

D4ryl00
Copy link
Contributor

@D4ryl00 D4ryl00 commented Jan 22, 2025

fixes #9

The gno's EstimateGas function takes a signed transition as a parameter. So it's preferable to only create a gnonative wrapper around it instead of making a new argument (aka estimateGas bool) on each kind of function (call, run, send).

So the flow would be that the dapp signs the transition with gnokey-mobile. After signing but before going back to the dapp, gnokey-mobile can show the estimate gas cost to the user, then gnokey-mobile returns also the gas estimation to the dapp which can also show it to the user as a dapp level confirmation before committing the transaction to the blockchain.

@D4ryl00 D4ryl00 self-assigned this Jan 22, 2025
@D4ryl00 D4ryl00 marked this pull request as draft January 22, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support EstimateGas
1 participant