Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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(near-contract-standards): NEP-199 - Non-Fungible Token Royalties and Payouts #1077
base: master
Are you sure you want to change the base?
feat(near-contract-standards): NEP-199 - Non-Fungible Token Royalties and Payouts #1077
Changes from 9 commits
8a1c2da
da97136
34c576f
7b58745
ca930d7
0406030
bd9c9fe
c8bd137
1e62834
8e5e777
14ac453
5da6f89
9470437
98aeceb
3d7a4ad
562b284
933c029
2f2779d
a5c67f7
6f07b52
e4da342
743eb06
b3716bf
d76ff5d
f3b3594
815a9ea
d809519
c2e990e
c3d8b67
ee59a72
5ec54b3
71dc47b
b7a0a22
5c20528
2db048b
279a7ee
369faaa
e080566
9e01a09
423bdc9
30175c3
5829c77
b59fc92
312f4ac
f2e709c
f2e3e08
66ccf2c
1fa86f7
5a574b4
7745888
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this explicit check users may see "gas exceed" error while their function call consumed way less than they attached (it will fail on an attempt to attach gas to the cross-contract call, so this function may have 10Tgas attached, 1TGas used, and fail with "gas exceeded" error as it fails to make a cross-contract call that needs 100Tgas). Though, I would make the error message even more explicit with something like: "nft_transfer_call requires at least X Tgas to cover the gas for nft_on_transfer cross-contract call"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I see what I've missed.