Skip to content

Commit

Permalink
Merge pull request #290 from pshenmic/feat/withdraw-decode-undefined-fix
Browse files Browse the repository at this point in the history
Decode error with null `outputScript`
  • Loading branch information
pshenmic authored Oct 21, 2024
2 parents 95c3c48 + 9118549 commit 3aca773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const decodeStateTransition = async (client, base64) => {
decoded.senderId = stateTransition.getIdentityId().toString()
decoded.amount = parseInt(stateTransition.getAmount())
decoded.nonce = parseInt(stateTransition.getNonce())
decoded.outputScript = stateTransition.getOutputScript().toString('hex')
decoded.outputScript = stateTransition.getOutputScript()?.toString('hex') ?? null
decoded.coreFeePerByte = stateTransition.getCoreFeePerByte()

break
Expand Down

0 comments on commit 3aca773

Please sign in to comment.