Skip to content

Commit

Permalink
Update transaction mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Dec 11, 2024
1 parent ebac363 commit 83ac284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transactionComputer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class TransactionComputer {
receiverUsername: this.toBase64OrUndefined(transaction.receiverUsername),
gasPrice: Number(transaction.gasPrice),
gasLimit: Number(transaction.gasLimit),
data: transaction.data.length > 0 ? Buffer.from(transaction.data).toString("base64") : undefined,
data: this.toBase64OrUndefined(transaction.data),
};

if (withSignature) {
Expand Down

0 comments on commit 83ac284

Please sign in to comment.