Skip to content

Commit

Permalink
feat: Add memo to signFeePayer
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Jun 11, 2022
1 parent 902462c commit 35e1695
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/zkapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ function signFeePayer(
{
transactionFee = 0 as number | string,
feePayerNonce = undefined as number | string | undefined,
memo = '',
}
) {
let parties: Types.Json.Parties = JSON.parse(transactionJson);
Expand All @@ -808,6 +809,7 @@ function signFeePayer(
parties.feePayer.body.nonce = `${feePayerNonce}`;
parties.feePayer.body.publicKey = Ledger.publicKeyToString(senderAddress);
parties.feePayer.body.fee = `${transactionFee}`;
parties.memo = Ledger.memoToBase58(memo);
return signJsonTransaction(JSON.stringify(parties), feePayerKey);
}

Expand Down

0 comments on commit 35e1695

Please sign in to comment.