Skip to content

Commit

Permalink
Handle empty tx params (#157)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Lelek <[email protected]>
  • Loading branch information
Filip-L and filip-neti authored Nov 7, 2024
1 parent 2f25cd8 commit 89841b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ const useWallet = (): WalletState => {
: undefined
} else {
for (const transaction of pendingTxs) {
if (!transaction.parsed?.params) {
continue
}
const paramsHex: string = transaction.parsed.params.toString('hex')
const dataHex: Hex = `0x${paramsHex}`
let decodedData
Expand Down

0 comments on commit 89841b9

Please sign in to comment.