Skip to content

Commit

Permalink
fix: be able to use the wallet it selft on having multiple signers ref
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevAlDen committed Feb 14, 2020
1 parent b9ceff6 commit 5be3a38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/models/walletsManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ func (walletM *WalletManager) signTxn(wltIds, address []string, source string, t
logWalletManager.WithError(err).Warnf("No signer %s for wallet %v", source, wlts[0])
return nil
}
if suid, err := signer.GetSignerUID(); err != nil && wlts[0].GetId() == string(suid) {
// NOTE the signer is the wallet it self
signer = nil
}
txn, err = wlts[0].Sign(qTxn.txn, signer, pwd, nil)
}

Expand Down

0 comments on commit 5be3a38

Please sign in to comment.