Skip to content

Commit

Permalink
chore: GetSigners usage moved to libmeta
Browse files Browse the repository at this point in the history
  • Loading branch information
deepan95dev committed Jan 4, 2024
1 parent 226a01f commit ab8c403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/paloma/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ func (d VerifyAuthorisedSignatureDecorator) AnteHandle(ctx sdk.Context, tx sdk.T
}

creator := m.GetMetadata().GetCreator()
signers := m.GetMetadata().GetSigners()
signers := libmeta.GetSigners(m)

signedByCreator := func() bool {
for _, v := range signers {
if v == creator {
if v.String() == creator {
return true
}
}
Expand Down Expand Up @@ -128,7 +128,7 @@ func (d VerifyAuthorisedSignatureDecorator) AnteHandle(ctx sdk.Context, tx sdk.T

grantees := make([]string, 0, len(signers))
for _, signer := range signers {
if v, found := grantsLkUp[signer]; found {
if v, found := grantsLkUp[signer.String()]; found {
logger(ctx).Debug("found granted signature", "signature", v.Grantee)
grantees = append(grantees, v.Grantee)
}
Expand Down

0 comments on commit ab8c403

Please sign in to comment.