-
Notifications
You must be signed in to change notification settings - Fork 14
Payments bugs v12 #609
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
Merged
Merged
Payments bugs v12 #609
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
64ac301
we were undercharging for asset calls
illuzen 7e5c6e0
handle fee checks the same on the way in and out
illuzen f9cd06a
improve burn accounting for do_refund
illuzen 8516e11
cannot set min balance as zero
illuzen 85514f6
correct burn weight
illuzen f419db9
always commit pending changes, not just in debug builds
illuzen 163fcab
dont' emit events for zero amount actions
illuzen fa93d8f
emit TransferredApproved in do_transfer_approved
illuzen 0038c04
correctly report owner in Asset Created event
illuzen 04412d6
generic weight
illuzen 151abd0
fmt
illuzen 4812efc
early return zero amount in do_transfer_approved
illuzen 6a1d203
revert: remove dead CurrencyAdapter keep-alive fix
illuzen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Zero transfer emits approval event
Low Severity
do_transfer_approvedalways depositsTransferredApprovedafter success, buttransfer_and_diereturns immediately whenamountis zero without moving tokens or emittingTransferred. Indexers can record a delegated transfer that never happened, inconsistent with the new zero-amount guards ondo_mintanddo_burn.Additional Locations (1)
pallets/assets/src/functions.rs#L997-L1019Reviewed by Cursor Bugbot for commit 151abd0. Configure here.