Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3804 +/- ##
==========================================
+ Coverage 72.78% 72.81% +0.02%
==========================================
Files 338 338
Lines 103923 104164 +241
==========================================
+ Hits 75637 75842 +205
- Misses 28286 28322 +36 ☔ View full report in Codecov by Sentry. |
06a80ae to
02e9057
Compare
tzemanovic
reviewed
Sep 14, 2024
tzemanovic
reviewed
Sep 14, 2024
2f0db67 to
b634d91
Compare
yito88
reviewed
Sep 14, 2024
batconjurer
reviewed
Sep 16, 2024
crates/ibc/src/lib.rs
Outdated
| { | ||
| self.verifiers.borrow_mut().insert( | ||
| Address::from_str(verifier.as_ref()).map_err(|_| { | ||
| Error::NftTransfer(NftTransferError::Other( |
Collaborator
There was a problem hiding this comment.
Does this only for NFT transfers? I'm confused about the choice of error type
Collaborator
Author
There was a problem hiding this comment.
You're right, could be both a fungible or non-fungible transfer. I've added a new error variant in 41583eb
yito88
approved these changes
Sep 17, 2024
tzemanovic
approved these changes
Sep 17, 2024
14 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Describe your changes
Addresses a bug discovered while attempting shielded actions on campfire. With #2928 we stopped triggering vps for the addresses that do not occupy the first segment of a storage keys. This has an effect on transfers, since the balance keys have as their first address the multitoken account. Our current implementation of the
transferandmulti-transferprelude functions manually triggers the vp of the source, but we do nothing for the destination(s), so we are not triggering their vps right now.This PR implements the followings:
transferandmulti-trasnferfunctions now also trigger the vps of the destinationsexecutemethod of the ibc context triggers the vp of the involved address for all the packets we supportis_masp_keyandis_masp_transfer_keyto ensure correct validationMisc:
unwrap_or_defaultin the pgf vp which was not fixed in Propagates error fromis_proposal_accepted#3700unwrap_or_defaulton errors to avoid the above issueChecklist before merging
breaking::labels