fix potential nil access error
@@ -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) {
