We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade1be3 commit da3a060Copy full SHA for da3a060
.changeset/stale-bottles-rule.md
@@ -0,0 +1,5 @@
1
+---
2
+'@3loop/transaction-decoder': patch
3
4
+
5
+Do not decode internal calldata param without knowing the address
packages/transaction-decoder/src/decoding/calldata-decode.ts
@@ -52,11 +52,11 @@ const decodeBytesRecursively = (
52
}
53
54
55
- if (isCallDataNode) {
+ if (isCallDataNode && address) {
56
const decoded = yield* decodeMethod({
57
data: node.value as Hex,
58
- chainID: address ? chainID : 0,
59
- contractAddress: address ?? '',
+ chainID,
+ contractAddress: address,
60
}).pipe(Effect.orElseSucceed(() => null))
61
62
return decoded
0 commit comments