Skip to content

Commit

Permalink
fix: fixing example/multi_app_transfer nil errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrix10 authored and janaakhterov committed Nov 10, 2020
1 parent e3005f6 commit 1f52d20
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions transfer_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ func (transaction *TransferTransaction) SignWith(
for index := 0; index < len(transaction.transactions); index++ {
signature := signer(transaction.transactions[index].GetBodyBytes())

transaction.signatures[index].SigPair = append(
transaction.signatures[index].SigPair,
publicKey.toSignaturePairProtobuf(signature),
newSig := &proto.SignatureMap{SigPair: make([]*proto.SignaturePair, 0)}
newSig.SigPair = append(newSig.SigPair,publicKey.toSignaturePairProtobuf(signature))

transaction.signatures = append(
transaction.signatures,
newSig,
)
}

Expand Down

0 comments on commit 1f52d20

Please sign in to comment.