This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Enforce max length for MultiAssets for some instructions #7615
Closed
Conversation
This file contains 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
franciscoaguirre
added
A0-please_review
Pull request needs code review.
C1-low
PR touches the given topic and has a low impact on builders.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
F3-breaks_API
This PR changes public API; next release should be major.
B1-note_worthy
Changes should be noted in the release notes
labels
Aug 14, 2023
franciscoaguirre
added
T6-XCM
This PR/Issue is related to XCM.
T2-API
This PR/Issue is related to APIs.
D5-nicetohaveaudit ⚠️
PR contains trivial changes to logic that should be properly reviewed.
and removed
T6-XCM
This PR/Issue is related to XCM.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
labels
Aug 14, 2023
KiChjang
reviewed
Aug 14, 2023
KiChjang
reviewed
Aug 14, 2023
KiChjang
added
T6-XCM
This PR/Issue is related to XCM.
T1-runtime
This PR/Issue is related to the topic “runtime”.
and removed
T2-API
This PR/Issue is related to APIs.
T6-XCM
This PR/Issue is related to XCM.
labels
Aug 14, 2023
franciscoaguirre
force-pushed
the
cisco-max-items-in-multiasset-enforcement
branch
from
August 17, 2023 15:37
5b46850
to
c6ea9a9
Compare
franciscoaguirre
added
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
T6-XCM
This PR/Issue is related to XCM.
T1-runtime
This PR/Issue is related to the topic “runtime”.
and removed
D5-nicetohaveaudit ⚠️
PR contains trivial changes to logic that should be properly reviewed.
F3-breaks_API
This PR changes public API; next release should be major.
T1-runtime
This PR/Issue is related to the topic “runtime”.
T6-XCM
This PR/Issue is related to XCM.
labels
Aug 17, 2023
bot rebase |
Branch is already up-to-date |
franciscoaguirre
changed the title
Enforce max length for MultiAssets
Enforce max length for MultiAssets for some instructions
Aug 17, 2023
xlc
reviewed
Aug 18, 2023
@@ -508,7 +508,7 @@ pub struct MultiAssets(Vec<MultiAsset>); | |||
|
|||
/// Maximum number of items we expect in a single `MultiAssets` value. Note this is not (yet) |
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.
comments needs update
Not needed any more after #7641 . |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A0-please_review
Pull request needs code review.
B1-note_worthy
Changes should be noted in the release notes
C1-low
PR touches the given topic and has a low impact on builders.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit.
T1-runtime
This PR/Issue is related to the topic “runtime”.
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.
MultiAssets
had a recommendedMAX_ITEMS_IN_MULTIASSETS
set to 20 but it was not being enforced.This PR enforces this check on the following instructions:
WithdrawAsset
ClaimAsset
ReserveAssetDeposited
ReceiveTeleportedAsset