Skip to content

Commit

Permalink
chore: resolve GetSigners error
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Jan 16, 2025
1 parent 48513d0 commit f4d7ea9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions golang/cosmos/x/vlocalchain/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,12 @@ type HasValidateBasic interface {
func (k Keeper) authenticateTx(msgs []sdk.Msg, actualSigner string) error {
for _, msg := range msgs {
// Validate that all required signers are satisfied (i.e. they match the actual signer).
for _, requiredSignerAddress := range msg.GetSigners() {
requiredSigner := requiredSignerAddress.String()
signers, _, err := k.cdc.GetMsgV1Signers(msg)
if err != nil {
panic(err)
}
for _, requiredSignerAddress := range signers {
requiredSigner := sdk.AccAddress(requiredSignerAddress).String()
if requiredSigner != actualSigner {
err := fmt.Errorf("required signer %s does not match actual signer", requiredSigner)
return err
Expand Down

0 comments on commit f4d7ea9

Please sign in to comment.