Skip to content

Commit

Permalink
fix fromPlainObject
Browse files Browse the repository at this point in the history
  • Loading branch information
schimih committed Sep 12, 2022
1 parent 2bceb55 commit e4f2d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class Transaction {
value: new BigNumber(plainObjectTransaction.value),
receiver: Address.fromString(plainObjectTransaction.receiver),
sender: Address.fromString(plainObjectTransaction.sender),
guardian: Address.fromString(plainObjectTransaction.guardian || ""),
guardian: plainObjectTransaction.guardian == undefined ? undefined : Address.fromString(plainObjectTransaction.guardian || ""),
gasPrice: Number(plainObjectTransaction.gasPrice),
gasLimit: Number(plainObjectTransaction.gasLimit),
data: new TransactionPayload(Buffer.from(plainObjectTransaction.data || "", "base64")),
Expand Down

0 comments on commit e4f2d3b

Please sign in to comment.