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

fix: exceed prepaid gas in nft_approve #1109

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hanakannzashi
Copy link
Contributor

@hanakannzashi hanakannzashi commented Nov 10, 2023

When user use implicit account to sign tx, more gas will be used, it will cause that 10Tgas is not enough for nft_approve.

This is an example:
https://legacy.explorer.near.org/transactions/CwuFtBWYnr5xkdpvbbTtznvFUf1FneAwMVBpPi8Q8wyd
User can not list NameSky NFT in marketplace with implicit account as signer

I think we can remove static gas for x-call nft_on_approve because default gas weight 1 will distribute remaining gas to it.

Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks fine to me. Have you tested it? Does it work as expected on your end now?

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.

2 participants