Skip to content

Commit

Permalink
fix potential nil access error
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestofIranon committed Mar 13, 2020
1 parent c2c538f commit 49ddb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (transaction Transaction) signWithOperator(operator operator) Transaction {
// to sign the transaction with the operator

var signedByOperator bool
operatorPublicKey := operator.privateKey.PublicKey().keyData
operatorPublicKey := operator.publicKey.keyData

for _, sigPair := range transaction.pb.SigMap.SigPair {
if bytes.Equal(sigPair.PubKeyPrefix, operatorPublicKey) {
Expand Down

0 comments on commit 49ddb07

Please sign in to comment.