-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: AuxTxBuilder check all AuxSignerData match #10547
Conversation
@@ -217,7 +217,7 @@ message Fee { | |||
// Tip is the tip used for meta-transactions. | |||
message Tip { | |||
// amount is the amount of the tip | |||
repeated cosmos.base.v1beta1.Coin amount = 1 [(gogoproto.nullable) = false]; | |||
repeated cosmos.base.v1beta1.Coin amount = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; |
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.
should we avoid using cast repeated as it seems we may stop using it later on?
nit: don't block on this
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.
sure... I guess we can just wrap it in Coins
when needed
* Rename file * Check matching AuxSignerData * Remove getbody * Remove useless code * Add small test Co-authored-by: Marko <marbar3778@yahoo.com>
Description
We added
AddAuxSignerData
on AuxTxBuilder. @i-norden pointed out that the fee payer could call this function multiple times (if there are multiple aux signers) but with different data.This PR adds some checks that all AuxSignerData added using
AddAuxSignerData
are the same.ref: #10455 (comment)
closes #10443
also closes #10528
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change