Skip to content

Commit

Permalink
Merge pull request #188 from binance-chain/fixgetsigner
Browse files Browse the repository at this point in the history
fix GetSigners
  • Loading branch information
rickyyangz authored Apr 13, 2020
2 parents afe3639 + 986d471 commit f9075f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions x/auth/stdtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ func (tx StdTx) GetMsgs() []sdk.Msg { return tx.Msgs }
// in the order they appear in tx.GetMsgs().
// Duplicate addresses will be omitted.
func (tx StdTx) GetSigners() []sdk.AccAddress {
// shortcut for most cases
if len(tx.GetMsgs()) == 1 {
return tx.GetMsgs()[0].GetSigners()
}

seen := map[string]bool{}
var signers []sdk.AccAddress
for _, msg := range tx.GetMsgs() {
Expand Down

0 comments on commit f9075f9

Please sign in to comment.