diff --git a/.changeset/hot-toys-judge.md b/.changeset/hot-toys-judge.md new file mode 100644 index 00000000..846a00f5 --- /dev/null +++ b/.changeset/hot-toys-judge.md @@ -0,0 +1,5 @@ +--- +'@3loop/transaction-decoder': patch +--- + +Update from and to adresses to the Hex format diff --git a/.changeset/pink-ravens-type.md b/.changeset/pink-ravens-type.md new file mode 100644 index 00000000..399e4322 --- /dev/null +++ b/.changeset/pink-ravens-type.md @@ -0,0 +1,5 @@ +--- +'@3loop/transaction-interpreter': patch +--- + +Small fixes in 0x and erc 721 interpreters diff --git a/README.md b/README.md index 7dcb24b9..f4fcf4be 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A library to transform any EVM transaction into a human-readable format. It consists of 2 parts: - [Transaction decoder](https://github.com/3loop/loop-decoder/tree/main/packages/transaction-decoder) -- [Transaction interpreter](https://github.com/3loop/loop-decoder/tree/main/packages/transaction-interpreter) +- [Transaction interpreter](https://github.com/3loop/loop-decoder/tree/main/packages/transaction-interpreter) (experimental) > ⚠️ The Transaction Interpreter is still under development and breaking changes are expected. diff --git a/packages/transaction-decoder/src/transaction-decoder.ts b/packages/transaction-decoder/src/transaction-decoder.ts index 3c2151e5..b5977173 100644 --- a/packages/transaction-decoder/src/transaction-decoder.ts +++ b/packages/transaction-decoder/src/transaction-decoder.ts @@ -166,8 +166,8 @@ export const decodeTransaction = ({ const decodedTx: DecodedTransaction = { txHash: transaction.hash, txType: nativeTransfer ? TxType.TRANSFER : TxType.CONTRACT_INTERACTION, - fromAddress: receipt.from, - toAddress: receipt.to, + fromAddress: getAddress(receipt.from), + toAddress: receipt.to ? getAddress(receipt.to) : null, contractName: contractMeta?.contractName ?? null, contractType: contractMeta?.type ?? 'OTHER', methodCall: { diff --git a/packages/transaction-decoder/test/snapshots/calldata/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot b/packages/transaction-decoder/test/snapshots/calldata/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot deleted file mode 100644 index 8522e55b..00000000 --- a/packages/transaction-decoder/test/snapshots/calldata/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "safeMint", - "params": [ - { - "name": "to", - "type": "address", - "value": "0x997162a6BEB886655d3e355B190fe0C8f0c37F0e", - }, - { - "name": "uri", - "type": "string", - "value": "https://nftstorage.link/ipfs/bafybeiagqdepcds2x2qenfv7way7q6rohxzqusbx4rles3nl2utln3ceoi/158e4875-d8de-405b-9abd-6fcfaace28cc.json", - }, - ], - "signature": "safeMint(address,string)", - "type": "function", -} \ No newline at end of file diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x0235fc6d0c91f40bcbe627069be612464027913b2e95b23dcf2e647f330a22b4.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x0235fc6d0c91f40bcbe627069be612464027913b2e95b23dcf2e647f330a22b4.snapshot index d7901e98..509c8611 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x0235fc6d0c91f40bcbe627069be612464027913b2e95b23dcf2e647f330a22b4.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x0235fc6d0c91f40bcbe627069be612464027913b2e95b23dcf2e647f330a22b4.snapshot @@ -33,7 +33,7 @@ "contractType": "ERC721", "effectiveGasPrice": "28687531", "errors": null, - "fromAddress": "0x997162a6beb886655d3e355b190fe0c8f0c37f0e", + "fromAddress": "0x997162a6BEB886655d3e355B190fe0C8f0c37F0e", "gasPaid": "0.00000134085519894", "gasUsed": "46740", "interactedAddresses": [ @@ -81,7 +81,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1692818220, - "toAddress": "0xc3e4214dd442136079df06bb2529bae276d37564", + "toAddress": "0xC3E4214dd442136079dF06bb2529Bae276d37564", "traceCalls": [], "transfers": [], "txHash": "0x0235fc6d0c91f40bcbe627069be612464027913b2e95b23dcf2e647f330a22b4", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x026fdb8b0017ef0e468e6d1627357adb9a8c4b6205ac0049bad80c253c76750c.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x026fdb8b0017ef0e468e6d1627357adb9a8c4b6205ac0049bad80c253c76750c.snapshot index a4867039..47a6c3dd 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x026fdb8b0017ef0e468e6d1627357adb9a8c4b6205ac0049bad80c253c76750c.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x026fdb8b0017ef0e468e6d1627357adb9a8c4b6205ac0049bad80c253c76750c.snapshot @@ -43,7 +43,7 @@ "contractType": "ERC20", "effectiveGasPrice": "12123195085", "errors": null, - "fromAddress": "0xea3c9d1d357c02b5bd0d98ffb8b5d06f0de3ceac", + "fromAddress": "0xEA3C9D1D357C02B5Bd0d98ffB8b5D06f0De3Ceac", "gasPaid": "0.00112064390726723", "gasUsed": "92438", "interactedAddresses": [ @@ -137,7 +137,7 @@ "nativeValueSent": "10000000000000000", "reverted": false, "timestamp": 1713094379, - "toAddress": "0xd152f549545093347a162dce210e7293f1452150", + "toAddress": "0xD152f549545093347A162Dce210e7293f1452150", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x02a4dda78f1452772d87aa080d65ed7c34785b9d0f4c20aa6c91c51a63ee1fa4.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x02a4dda78f1452772d87aa080d65ed7c34785b9d0f4c20aa6c91c51a63ee1fa4.snapshot index a129db7e..a36668fb 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x02a4dda78f1452772d87aa080d65ed7c34785b9d0f4c20aa6c91c51a63ee1fa4.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x02a4dda78f1452772d87aa080d65ed7c34785b9d0f4c20aa6c91c51a63ee1fa4.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "13720245625", "errors": null, - "fromAddress": "0xde02fffb824720e25674a604baf2277f21c66a0f", + "fromAddress": "0xde02FFFb824720E25674a604BaF2277f21c66a0F", "gasPaid": "0.002586856270874375", "gasUsed": "188543", "interactedAddresses": [ @@ -303,7 +303,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1712476739, - "toAddress": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", + "toAddress": "0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5", "traceCalls": [ { "from": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x074e27d856aae900c2a16f8577baa4194a1c23daf54efe80faff4bb612e410ba.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x074e27d856aae900c2a16f8577baa4194a1c23daf54efe80faff4bb612e410ba.snapshot index 5a0492d6..e46c6962 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x074e27d856aae900c2a16f8577baa4194a1c23daf54efe80faff4bb612e410ba.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x074e27d856aae900c2a16f8577baa4194a1c23daf54efe80faff4bb612e410ba.snapshot @@ -52,7 +52,7 @@ "contractType": "ERC20", "effectiveGasPrice": "14882560478", "errors": null, - "fromAddress": "0xaef176ef3501a72608411d8f15f570bc3c36d7fa", + "fromAddress": "0xaeF176EF3501a72608411d8F15f570bc3C36D7fa", "gasPaid": "0.002982822301242672", "gasUsed": "200424", "interactedAddresses": [ @@ -203,7 +203,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1728390371, - "toAddress": "0x40a2accbd92bca938b02010e17a5b8929b49130d", + "toAddress": "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x0f5cb8565e543d866a0477865575c20919e09c37c14588cf1878c91a47c6e37e.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x0f5cb8565e543d866a0477865575c20919e09c37c14588cf1878c91a47c6e37e.snapshot index ac526267..9473fd3c 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x0f5cb8565e543d866a0477865575c20919e09c37c14588cf1878c91a47c6e37e.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x0f5cb8565e543d866a0477865575c20919e09c37c14588cf1878c91a47c6e37e.snapshot @@ -25,7 +25,7 @@ "contractType": "ERC20", "effectiveGasPrice": "13241256548", "errors": null, - "fromAddress": "0xbbdd1b3c87c211e482cda98ea14fa8bf50022ca0", + "fromAddress": "0xbbDd1b3C87c211E482CdA98eA14fa8bF50022CA0", "gasPaid": "0.000696741678299212", "gasUsed": "52619", "interactedAddresses": [ @@ -90,7 +90,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1712476259, - "toAddress": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", + "toAddress": "0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5", "traceCalls": [ { "from": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x1cf9beb600427c0fef7b4b5794f0f3eccef6a75cec1f1680b9295187effa3788.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x1cf9beb600427c0fef7b4b5794f0f3eccef6a75cec1f1680b9295187effa3788.snapshot index 3e59ceaa..5247de38 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x1cf9beb600427c0fef7b4b5794f0f3eccef6a75cec1f1680b9295187effa3788.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x1cf9beb600427c0fef7b4b5794f0f3eccef6a75cec1f1680b9295187effa3788.snapshot @@ -42,7 +42,7 @@ "contractType": "ERC1155", "effectiveGasPrice": "1003151084", "errors": null, - "fromAddress": "0x80f6ec9e30340f2c2fe96493c242b227c85e520d", + "fromAddress": "0x80f6EC9E30340f2c2fE96493c242b227C85e520d", "gasPaid": "0.000033173203196796", "gasUsed": "33069", "interactedAddresses": [ @@ -98,7 +98,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1691435796, - "toAddress": "0x58c3c2547084cc1c94130d6fd750a3877c7ca5d2", + "toAddress": "0x58c3c2547084CC1C94130D6fd750A3877c7Ca5D2", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x36f5c6d053ef3de0a412f871ead797d199d80dbc5ea4ba6ab1b1a211730aea13.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x36f5c6d053ef3de0a412f871ead797d199d80dbc5ea4ba6ab1b1a211730aea13.snapshot index a8b8ffaf..71841ba8 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x36f5c6d053ef3de0a412f871ead797d199d80dbc5ea4ba6ab1b1a211730aea13.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x36f5c6d053ef3de0a412f871ead797d199d80dbc5ea4ba6ab1b1a211730aea13.snapshot @@ -25,7 +25,7 @@ "contractType": "ERC20", "effectiveGasPrice": "7233943704", "errors": null, - "fromAddress": "0xac21ac0aaa1c9c658c8ea29f81f02520a3d82d60", + "fromAddress": "0xaC21aC0AAA1c9C658C8ea29f81F02520a3D82D60", "gasPaid": "0.000372121298077464", "gasUsed": "51441", "interactedAddresses": [ @@ -142,7 +142,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1730731979, - "toAddress": "0x1f98415757620b543a52e61c46b32eb19261f984", + "toAddress": "0x1F98415757620B543A52E61c46B32eB19261F984", "traceCalls": [ { "from": "0x1f98415757620b543a52e61c46b32eb19261f984", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x548af97ffad9b36b4ec40b403299dda5fac222c130cf4a3e2c4d438d88fe2280.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x548af97ffad9b36b4ec40b403299dda5fac222c130cf4a3e2c4d438d88fe2280.snapshot index 40442112..04ca6031 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x548af97ffad9b36b4ec40b403299dda5fac222c130cf4a3e2c4d438d88fe2280.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x548af97ffad9b36b4ec40b403299dda5fac222c130cf4a3e2c4d438d88fe2280.snapshot @@ -70,7 +70,7 @@ "contractType": "ERC20", "effectiveGasPrice": "2984279961", "errors": null, - "fromAddress": "0xac844837a2b58db4b4def35b243ee14c3e36a96b", + "fromAddress": "0xac844837a2B58db4B4deF35b243ee14c3e36A96b", "gasPaid": "0.000681382737815364", "gasUsed": "228324", "interactedAddresses": [ @@ -325,7 +325,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1725778547, - "toAddress": "0xca11bde05977b3631167028862be2a173976ca11", + "toAddress": "0xcA11bde05977b3631167028862bE2a173976CA11", "traceCalls": [ { "from": "0xca11bde05977b3631167028862be2a173976ca11", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x65324c58b7c555d7fccfacfaa124f39c64405f6692069ea003ce100f08192bcd.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x65324c58b7c555d7fccfacfaa124f39c64405f6692069ea003ce100f08192bcd.snapshot index 07fdc063..698b8d50 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x65324c58b7c555d7fccfacfaa124f39c64405f6692069ea003ce100f08192bcd.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x65324c58b7c555d7fccfacfaa124f39c64405f6692069ea003ce100f08192bcd.snapshot @@ -42,7 +42,7 @@ "contractType": "ERC721", "effectiveGasPrice": "2500000021", "errors": null, - "fromAddress": "0xdc75e8c3ae765d8947adbc6698a2403a6141d439", + "fromAddress": "0xdC75e8c3aE765D8947aDBC6698a2403A6141D439", "gasPaid": "0.000219745001845858", "gasUsed": "87898", "interactedAddresses": [ @@ -114,7 +114,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1692349644, - "toAddress": "0xc3e4214dd442136079df06bb2529bae276d37564", + "toAddress": "0xC3E4214dd442136079dF06bb2529Bae276d37564", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x65954673ecca8c3c8939088f2eaa38ddad3cc2a96ab47c6b6a167548cf2da175.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x65954673ecca8c3c8939088f2eaa38ddad3cc2a96ab47c6b6a167548cf2da175.snapshot index bf794a85..b7d77aac 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x65954673ecca8c3c8939088f2eaa38ddad3cc2a96ab47c6b6a167548cf2da175.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x65954673ecca8c3c8939088f2eaa38ddad3cc2a96ab47c6b6a167548cf2da175.snapshot @@ -42,7 +42,7 @@ "contractType": "ERC721", "effectiveGasPrice": "1500000028", "errors": null, - "fromAddress": "0x6951ae195690e95e9f3eafadbe241ac19ef263e4", + "fromAddress": "0x6951AE195690E95E9f3eAfadBe241ac19Ef263E4", "gasPaid": "0.000127456502379188", "gasUsed": "84971", "interactedAddresses": [ @@ -114,7 +114,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1692347904, - "toAddress": "0xc3e4214dd442136079df06bb2529bae276d37564", + "toAddress": "0xC3E4214dd442136079dF06bb2529Bae276d37564", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x695ed05f74461801e15d68768b784473de034156a81f12f3485bc157e4ac60c9.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x695ed05f74461801e15d68768b784473de034156a81f12f3485bc157e4ac60c9.snapshot index 1d7ed4ae..8418ef3e 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x695ed05f74461801e15d68768b784473de034156a81f12f3485bc157e4ac60c9.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x695ed05f74461801e15d68768b784473de034156a81f12f3485bc157e4ac60c9.snapshot @@ -42,7 +42,7 @@ "contractType": "ERC1155", "effectiveGasPrice": "1500000008", "errors": null, - "fromAddress": "0xbdddd277583dcae0b501046ba86714feea71b03f", + "fromAddress": "0xBdDDd277583DCaE0B501046ba86714FEea71B03F", "gasPaid": "0.000261153001392816", "gasUsed": "174102", "interactedAddresses": [ @@ -199,7 +199,7 @@ "nativeValueSent": "3000000000000000000", "reverted": false, "timestamp": 1693789380, - "toAddress": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", + "toAddress": "0x4BED3aE022FD201AB7185a9BC80cB8Bf9819bb80", "traceCalls": [ { "from": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x7f040d831f20b530b42bb1ad1e1a8493e34f16b526fd324dc02e5ef5afad7c1e.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x7f040d831f20b530b42bb1ad1e1a8493e34f16b526fd324dc02e5ef5afad7c1e.snapshot index 07d6987c..d5eca2ac 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x7f040d831f20b530b42bb1ad1e1a8493e34f16b526fd324dc02e5ef5afad7c1e.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x7f040d831f20b530b42bb1ad1e1a8493e34f16b526fd324dc02e5ef5afad7c1e.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "1500000012", "errors": null, - "fromAddress": "0x607e064d6d9dc45d4109b835b915d9c75780103e", + "fromAddress": "0x607E064d6D9DC45D4109b835B915d9c75780103e", "gasPaid": "0.00027312000218496", "gasUsed": "182080", "interactedAddresses": [ @@ -290,7 +290,7 @@ "nativeValueSent": "1000000000000000000", "reverted": false, "timestamp": 1693726392, - "toAddress": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad", + "toAddress": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD", "traceCalls": [ { "from": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot index 4c44978e..9c7cd529 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x867ee0665a0e37bb52e5c2211b122ee952c358ee1d509c45b1157c2b3be8313c.snapshot @@ -42,7 +42,7 @@ "contractType": "ERC721", "effectiveGasPrice": "1500000010", "errors": null, - "fromAddress": "0x63c640de6f9963a90afdfa64fd44ee97e2169a18", + "fromAddress": "0x63c640dE6f9963A90AFdFa64fD44Ee97e2169a18", "gasPaid": "0.00043732950291553", "gasUsed": "291553", "interactedAddresses": [ @@ -91,7 +91,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1692818604, - "toAddress": "0xc3e4214dd442136079df06bb2529bae276d37564", + "toAddress": "0xC3E4214dd442136079dF06bb2529Bae276d37564", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x8988e8a44d27b10bb3f6425b33d8249cc2206ca815faa234d93f2d1c01022a2d.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x8988e8a44d27b10bb3f6425b33d8249cc2206ca815faa234d93f2d1c01022a2d.snapshot index 9614a9ce..d3f2f361 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x8988e8a44d27b10bb3f6425b33d8249cc2206ca815faa234d93f2d1c01022a2d.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x8988e8a44d27b10bb3f6425b33d8249cc2206ca815faa234d93f2d1c01022a2d.snapshot @@ -519,7 +519,7 @@ "contractType": "ERC1155", "effectiveGasPrice": "1500000008", "errors": null, - "fromAddress": "0xbdddd277583dcae0b501046ba86714feea71b03f", + "fromAddress": "0xBdDDd277583DCaE0B501046ba86714FEea71B03F", "gasPaid": "0.00295564501576344", "gasUsed": "1970430", "interactedAddresses": [ @@ -1775,7 +1775,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1693790700, - "toAddress": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", + "toAddress": "0x4BED3aE022FD201AB7185a9BC80cB8Bf9819bb80", "traceCalls": [ { "from": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0x9ed41e3d626605673c282dc8a0f7429e7abcab112d6529b0c77ee43954202cab.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0x9ed41e3d626605673c282dc8a0f7429e7abcab112d6529b0c77ee43954202cab.snapshot index 44a1d276..4bc34612 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0x9ed41e3d626605673c282dc8a0f7429e7abcab112d6529b0c77ee43954202cab.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0x9ed41e3d626605673c282dc8a0f7429e7abcab112d6529b0c77ee43954202cab.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "13465408617", "errors": null, - "fromAddress": "0x22b81a596d3a1f727801bac52fc1b6c258765f48", + "fromAddress": "0x22b81A596d3A1f727801bac52FC1B6c258765f48", "gasPaid": "0.004282336575421425", "gasUsed": "318025", "interactedAddresses": [ @@ -695,7 +695,7 @@ "nativeValueSent": "285000000000000000", "reverted": false, "timestamp": 1713106571, - "toAddress": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", + "toAddress": "0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5", "traceCalls": [ { "from": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xab701677e5003fa029164554b81e01bede20b97eda0e2595acda81acf5628f75.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xab701677e5003fa029164554b81e01bede20b97eda0e2595acda81acf5628f75.snapshot index 3f69f312..27d3729e 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xab701677e5003fa029164554b81e01bede20b97eda0e2595acda81acf5628f75.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xab701677e5003fa029164554b81e01bede20b97eda0e2595acda81acf5628f75.snapshot @@ -52,7 +52,7 @@ "contractType": "ERC20", "effectiveGasPrice": "136945022825", "errors": null, - "fromAddress": "0x44f356e8716575f2a713a3d91ae4ed1c7c054a90", + "fromAddress": "0x44f356E8716575f2a713A3D91Ae4ed1c7c054A90", "gasPaid": "0.01719618651613525", "gasUsed": "125570", "interactedAddresses": [ @@ -221,7 +221,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1688483352, - "toAddress": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad", + "toAddress": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD", "traceCalls": [ { "from": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xabe682c315f7eb233c02618498b08dddf466513705d6402413016311844d3189.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xabe682c315f7eb233c02618498b08dddf466513705d6402413016311844d3189.snapshot index e8bfd7fb..842a4cd1 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xabe682c315f7eb233c02618498b08dddf466513705d6402413016311844d3189.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xabe682c315f7eb233c02618498b08dddf466513705d6402413016311844d3189.snapshot @@ -97,7 +97,7 @@ "contractType": "ERC20", "effectiveGasPrice": "12228644719", "errors": null, - "fromAddress": "0x691c975c857182e67ab227e2cb4ffc4daba15654", + "fromAddress": "0x691c975C857182e67Ab227E2cb4fFc4dAba15654", "gasPaid": "0.0023637970241827", "gasUsed": "193300", "interactedAddresses": [ @@ -572,7 +572,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1728222767, - "toAddress": "0xbd4b515ed602792497364de7c306659297378fae", + "toAddress": "0xBd4b515Ed602792497364De7C306659297378FAe", "traceCalls": [ { "from": "0xbd4b515ed602792497364de7c306659297378fae", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xaf25e307654bed21aaec67fc439695fbed7cadf6c542cd97b4c5391f6c23f7bc.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xaf25e307654bed21aaec67fc439695fbed7cadf6c542cd97b4c5391f6c23f7bc.snapshot index d37e25fa..89839af5 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xaf25e307654bed21aaec67fc439695fbed7cadf6c542cd97b4c5391f6c23f7bc.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xaf25e307654bed21aaec67fc439695fbed7cadf6c542cd97b4c5391f6c23f7bc.snapshot @@ -33,7 +33,7 @@ "contractType": "ERC1155", "effectiveGasPrice": "1386", "errors": null, - "fromAddress": "0x75dd23ba3ba67f9663cbf6f9bdc7ab4923dd91d7", + "fromAddress": "0x75dD23ba3BA67f9663CbF6F9bdc7aB4923dD91D7", "gasPaid": "0.00000000009225909", "gasUsed": "66565", "interactedAddresses": [ @@ -81,7 +81,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1693791180, - "toAddress": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", + "toAddress": "0x4BED3aE022FD201AB7185a9BC80cB8Bf9819bb80", "traceCalls": [ { "from": "0x4bed3ae022fd201ab7185a9bc80cb8bf9819bb80", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xb5c56b4213325cb3fba274d0467b40ab28d9d475ba4a652b46943251c3c0d697.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xb5c56b4213325cb3fba274d0467b40ab28d9d475ba4a652b46943251c3c0d697.snapshot index 257910d2..e52301cb 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xb5c56b4213325cb3fba274d0467b40ab28d9d475ba4a652b46943251c3c0d697.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xb5c56b4213325cb3fba274d0467b40ab28d9d475ba4a652b46943251c3c0d697.snapshot @@ -115,7 +115,7 @@ "contractType": "ERC20", "effectiveGasPrice": "13538434193", "errors": null, - "fromAddress": "0x79e105407826df488c0e715372fc858b8fcf8ee3", + "fromAddress": "0x79e105407826Df488c0E715372Fc858B8fcf8EE3", "gasPaid": "0.01105859920186819", "gasUsed": "816830", "interactedAddresses": [ @@ -1604,7 +1604,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1712476775, - "toAddress": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", + "toAddress": "0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5", "traceCalls": [ { "from": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xbb07f5dbff6c4b7bdd26d0f9e2f7c6d41fd8f6eb5a5697832c45a738518cd284.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xbb07f5dbff6c4b7bdd26d0f9e2f7c6d41fd8f6eb5a5697832c45a738518cd284.snapshot index bcc94f9d..95a1d562 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xbb07f5dbff6c4b7bdd26d0f9e2f7c6d41fd8f6eb5a5697832c45a738518cd284.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xbb07f5dbff6c4b7bdd26d0f9e2f7c6d41fd8f6eb5a5697832c45a738518cd284.snapshot @@ -43,7 +43,7 @@ "contractType": "ERC20", "effectiveGasPrice": "4198215081", "errors": null, - "fromAddress": "0x5b87c8323352c57dac33884154aace8b3d593a07", + "fromAddress": "0x5b87C8323352C57Dac33884154aACE8b3D593A07", "gasPaid": "0.000408830581017942", "gasUsed": "97382", "interactedAddresses": [ @@ -190,7 +190,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1728103451, - "toAddress": "0x78c38d0e31592822135c83873e68c7ee4df82586", + "toAddress": "0x78c38d0E31592822135C83873e68C7EE4df82586", "traceCalls": [ { "from": "0x78c38d0e31592822135c83873e68c7ee4df82586", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xcc1f4e40e1186503bb19b5716c8527947ab4c7e972b79d3d64ad8a015cf10ff8.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xcc1f4e40e1186503bb19b5716c8527947ab4c7e972b79d3d64ad8a015cf10ff8.snapshot index f170bcc6..0ef929f6 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xcc1f4e40e1186503bb19b5716c8527947ab4c7e972b79d3d64ad8a015cf10ff8.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xcc1f4e40e1186503bb19b5716c8527947ab4c7e972b79d3d64ad8a015cf10ff8.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "13212010029", "errors": null, - "fromAddress": "0x65c51459258464020e850fba27b427bd708da638", + "fromAddress": "0x65c51459258464020e850FBa27B427BD708da638", "gasPaid": "0.00153801008747589", "gasUsed": "116410", "interactedAddresses": [ @@ -229,7 +229,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1712404607, - "toAddress": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789", + "toAddress": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", "traceCalls": [ { "from": "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xd83d86917c0a4b67b73bebce6822bd2545ea69e98e15a054bf4458258fd6d068.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xd83d86917c0a4b67b73bebce6822bd2545ea69e98e15a054bf4458258fd6d068.snapshot index 84c8e8c4..4ba27d99 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xd83d86917c0a4b67b73bebce6822bd2545ea69e98e15a054bf4458258fd6d068.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xd83d86917c0a4b67b73bebce6822bd2545ea69e98e15a054bf4458258fd6d068.snapshot @@ -232,7 +232,7 @@ "contractType": "ERC20", "effectiveGasPrice": "2302830130", "errors": null, - "fromAddress": "0xf7bac63fc7ceacf0589f25454ecf5c2ce904997c", + "fromAddress": "0xf7bAc63fc7CEaCf0589F25454Ecf5C2ce904997c", "gasPaid": "0.00888917991594443", "gasUsed": "3860111", "interactedAddresses": [ @@ -2001,7 +2001,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1725780047, - "toAddress": "0xca11bde05977b3631167028862be2a173976ca11", + "toAddress": "0xcA11bde05977b3631167028862bE2a173976CA11", "traceCalls": [ { "from": "0xca11bde05977b3631167028862be2a173976ca11", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xde9f6210899218e17a3e71661ead5e16da228e168b0572b1ddc30a967968f8f6.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xde9f6210899218e17a3e71661ead5e16da228e168b0572b1ddc30a967968f8f6.snapshot index afa70684..6a846b8c 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xde9f6210899218e17a3e71661ead5e16da228e168b0572b1ddc30a967968f8f6.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xde9f6210899218e17a3e71661ead5e16da228e168b0572b1ddc30a967968f8f6.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "15530892252", "errors": null, - "fromAddress": "0x955fe53ff029d6a0503c0b101e109036475e580b", + "fromAddress": "0x955fe53fF029d6a0503C0b101E109036475e580b", "gasPaid": "0.004708065739055784", "gasUsed": "303142", "interactedAddresses": [ @@ -208,7 +208,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1713890795, - "toAddress": "0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2", + "toAddress": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2", "traceCalls": [ { "from": "0x87870bca3f3fd6335c3f4ce8392d69350b4fa4e2", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xe6acfd7099db3c9bf94e7dab0052a9363cc9b6a33d91449ccc523bdd5d99861c.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xe6acfd7099db3c9bf94e7dab0052a9363cc9b6a33d91449ccc523bdd5d99861c.snapshot index 5e9f8dbe..7fd9ec8d 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xe6acfd7099db3c9bf94e7dab0052a9363cc9b6a33d91449ccc523bdd5d99861c.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xe6acfd7099db3c9bf94e7dab0052a9363cc9b6a33d91449ccc523bdd5d99861c.snapshot @@ -43,7 +43,7 @@ "contractType": "ERC20", "effectiveGasPrice": "4492988383", "errors": null, - "fromAddress": "0x5b87c8323352c57dac33884154aace8b3d593a07", + "fromAddress": "0x5b87C8323352C57Dac33884154aACE8b3D593A07", "gasPaid": "0.000333838022833666", "gasUsed": "74302", "interactedAddresses": [ @@ -195,7 +195,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1728103535, - "toAddress": "0x78c38d0e31592822135c83873e68c7ee4df82586", + "toAddress": "0x78c38d0E31592822135C83873e68C7EE4df82586", "traceCalls": [ { "from": "0x78c38d0e31592822135c83873e68c7ee4df82586", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xea1f1d20b3a22301f8c2c4191b6e85d9659a308e4fd877bfa6576434ba4c1451.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xea1f1d20b3a22301f8c2c4191b6e85d9659a308e4fd877bfa6576434ba4c1451.snapshot index 7bb4a3e9..0469e7d7 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xea1f1d20b3a22301f8c2c4191b6e85d9659a308e4fd877bfa6576434ba4c1451.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xea1f1d20b3a22301f8c2c4191b6e85d9659a308e4fd877bfa6576434ba4c1451.snapshot @@ -61,7 +61,7 @@ "contractType": "ERC20", "effectiveGasPrice": "1892031171", "errors": null, - "fromAddress": "0x6bc01c06a8cc2022857291545ff72a3c8a298744", + "fromAddress": "0x6BC01C06a8cc2022857291545fF72A3c8A298744", "gasPaid": "0.00044848706877384", "gasUsed": "237040", "interactedAddresses": [ @@ -274,7 +274,7 @@ "nativeValueSent": "36514032197981807", "reverted": false, "timestamp": 1725671747, - "toAddress": "0xca11bde05977b3631167028862be2a173976ca11", + "toAddress": "0xcA11bde05977b3631167028862bE2a173976CA11", "traceCalls": [ { "from": "0xca11bde05977b3631167028862be2a173976ca11", diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xf821984218cb5f28807cbcf08c7b08bff1bd397d078af437905718a6cad93b50.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xf821984218cb5f28807cbcf08c7b08bff1bd397d078af437905718a6cad93b50.snapshot index 5679d343..8715d428 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xf821984218cb5f28807cbcf08c7b08bff1bd397d078af437905718a6cad93b50.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xf821984218cb5f28807cbcf08c7b08bff1bd397d078af437905718a6cad93b50.snapshot @@ -43,7 +43,7 @@ "contractType": "ERC20", "effectiveGasPrice": "950000000", "errors": null, - "fromAddress": "0x11e10eef8bbcbcd9f21eb69cbf107cd53f3bb77a", + "fromAddress": "0x11e10EeF8bbcBCd9f21eB69cBF107Cd53f3bB77A", "gasPaid": "0.0001509816", "gasUsed": "158928", "interactedAddresses": [ @@ -109,7 +109,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1725781739, - "toAddress": "0xca11bde05977b3631167028862be2a173976ca11", + "toAddress": "0xcA11bde05977b3631167028862bE2a173976CA11", "traceCalls": [], "transfers": [ { diff --git a/packages/transaction-decoder/test/snapshots/decoder/0xf852866a9d10ab4713b00f3a012b7e60a48055a6f2cd99ae7efce205c390f710.snapshot b/packages/transaction-decoder/test/snapshots/decoder/0xf852866a9d10ab4713b00f3a012b7e60a48055a6f2cd99ae7efce205c390f710.snapshot index b080c9a5..700b7558 100644 --- a/packages/transaction-decoder/test/snapshots/decoder/0xf852866a9d10ab4713b00f3a012b7e60a48055a6f2cd99ae7efce205c390f710.snapshot +++ b/packages/transaction-decoder/test/snapshots/decoder/0xf852866a9d10ab4713b00f3a012b7e60a48055a6f2cd99ae7efce205c390f710.snapshot @@ -70,7 +70,7 @@ "contractType": "ERC20", "effectiveGasPrice": "14279272922", "errors": null, - "fromAddress": "0xaffca680e6dcbb1bb336108d5acca9c545885260", + "fromAddress": "0xAffca680e6dcbb1bb336108D5aCcA9c545885260", "gasPaid": "0.002487863441927138", "gasUsed": "174229", "interactedAddresses": [ @@ -381,7 +381,7 @@ "nativeValueSent": "0", "reverted": false, "timestamp": 1712476355, - "toAddress": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", + "toAddress": "0xb2ecfE4E4D61f8790bbb9DE2D1259B9e2410CEA5", "traceCalls": [ { "from": "0xb2ecfe4e4d61f8790bbb9de2d1259b9e2410cea5", diff --git a/packages/transaction-decoder/test/snapshots/failed/0x00da24c697c768216ba2bbfe06cfd7b28baaed1c8b095b6c0b682167f99044c0.snapshot b/packages/transaction-decoder/test/snapshots/failed/0x00da24c697c768216ba2bbfe06cfd7b28baaed1c8b095b6c0b682167f99044c0.snapshot index 1287eae3..263377f5 100644 --- a/packages/transaction-decoder/test/snapshots/failed/0x00da24c697c768216ba2bbfe06cfd7b28baaed1c8b095b6c0b682167f99044c0.snapshot +++ b/packages/transaction-decoder/test/snapshots/failed/0x00da24c697c768216ba2bbfe06cfd7b28baaed1c8b095b6c0b682167f99044c0.snapshot @@ -30,7 +30,7 @@ "message": null, }, ], - "fromAddress": "0x4a7f29ef087930b88fedec1df7678bf8e6f875b1", + "fromAddress": "0x4A7F29eF087930B88feDEc1df7678BF8e6f875B1", "gasPaid": "0.00090357525054696", "gasUsed": "35380", "interactedAddresses": [ @@ -47,7 +47,7 @@ "nativeValueSent": "44444000000000000", "reverted": true, "timestamp": 1717675583, - "toAddress": "0xc2c3d2bd014da92aa3c562520a6c23fc474d990b", + "toAddress": "0xC2c3D2Bd014Da92AA3C562520a6C23fC474D990B", "traceCalls": [ { "from": "0xc2c3d2bd014da92aa3c562520a6c23fc474d990b", diff --git a/packages/transaction-decoder/test/snapshots/failed/0x0ec3122d1113c7159d653c4637dbd6af2f4696dde00761229c7e21801e48046b.snapshot b/packages/transaction-decoder/test/snapshots/failed/0x0ec3122d1113c7159d653c4637dbd6af2f4696dde00761229c7e21801e48046b.snapshot index fae3eaf2..f49fb2fe 100644 --- a/packages/transaction-decoder/test/snapshots/failed/0x0ec3122d1113c7159d653c4637dbd6af2f4696dde00761229c7e21801e48046b.snapshot +++ b/packages/transaction-decoder/test/snapshots/failed/0x0ec3122d1113c7159d653c4637dbd6af2f4696dde00761229c7e21801e48046b.snapshot @@ -34,7 +34,7 @@ "message": null, }, ], - "fromAddress": "0x27d377547da6beee6ec254a6be22868b4a418708", + "fromAddress": "0x27d377547da6bEeE6ec254a6bE22868B4a418708", "gasPaid": "0.003837719786750116", "gasUsed": "262244", "interactedAddresses": [ @@ -51,7 +51,7 @@ "nativeValueSent": "0", "reverted": true, "timestamp": 1712818187, - "toAddress": "0x7d89ab380f223d01fce6b36d37f74a87b0da0c92", + "toAddress": "0x7D89AB380F223D01Fce6b36d37f74A87b0Da0c92", "traceCalls": [ { "from": "0x7d89ab380f223d01fce6b36d37f74a87b0da0c92", diff --git a/packages/transaction-decoder/test/snapshots/failed/0x78b3bce497969c571bf4ac9a586679d01aff3410454380285c7e70a8ece2fd1f.snapshot b/packages/transaction-decoder/test/snapshots/failed/0x78b3bce497969c571bf4ac9a586679d01aff3410454380285c7e70a8ece2fd1f.snapshot index 4d879d27..e83d2d6a 100644 --- a/packages/transaction-decoder/test/snapshots/failed/0x78b3bce497969c571bf4ac9a586679d01aff3410454380285c7e70a8ece2fd1f.snapshot +++ b/packages/transaction-decoder/test/snapshots/failed/0x78b3bce497969c571bf4ac9a586679d01aff3410454380285c7e70a8ece2fd1f.snapshot @@ -30,7 +30,7 @@ "message": "Slippage Limit Exceeded", }, ], - "fromAddress": "0x26de224cbe06fd4321ce5747a176cbbd24773beb", + "fromAddress": "0x26de224CBE06fd4321Ce5747a176CBBD24773BEb", "gasPaid": "0.005569830614649707", "gasUsed": "305761", "interactedAddresses": [ @@ -47,7 +47,7 @@ "nativeValueSent": "0", "reverted": true, "timestamp": 1717675571, - "toAddress": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559", + "toAddress": "0xCf5540fFFCdC3d510B18bFcA6d2b9987b0772559", "traceCalls": [ { "from": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559", diff --git a/packages/transaction-decoder/test/snapshots/failed/0xb2c22e198d9fd3fe05c65a73879e79103c612f2f4d27e3e1615f231d1383ce40.snapshot b/packages/transaction-decoder/test/snapshots/failed/0xb2c22e198d9fd3fe05c65a73879e79103c612f2f4d27e3e1615f231d1383ce40.snapshot index d09798a6..0b4909a6 100644 --- a/packages/transaction-decoder/test/snapshots/failed/0xb2c22e198d9fd3fe05c65a73879e79103c612f2f4d27e3e1615f231d1383ce40.snapshot +++ b/packages/transaction-decoder/test/snapshots/failed/0xb2c22e198d9fd3fe05c65a73879e79103c612f2f4d27e3e1615f231d1383ce40.snapshot @@ -30,7 +30,7 @@ "message": "TransactionDeadlinePassed()", }, ], - "fromAddress": "0x5554d2bddee2019885594802ba751942c8735b55", + "fromAddress": "0x5554D2BDdEE2019885594802bA751942C8735b55", "gasPaid": "0.000453941692026591", "gasUsed": "26423", "interactedAddresses": [ @@ -67,7 +67,7 @@ "nativeValueSent": "0", "reverted": true, "timestamp": 1717675559, - "toAddress": "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad", + "toAddress": "0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD", "traceCalls": [], "transfers": [], "txHash": "0xb2c22e198d9fd3fe05c65a73879e79103c612f2f4d27e3e1615f231d1383ce40", diff --git a/packages/transaction-interpreter/interpreters/std.ts b/packages/transaction-interpreter/interpreters/std.ts index 58be925d..ab350cf2 100644 --- a/packages/transaction-interpreter/interpreters/std.ts +++ b/packages/transaction-interpreter/interpreters/std.ts @@ -328,7 +328,7 @@ export function categorizedDefaultEvent(event: DecodedTransaction): InterpretedT } // single mint - if (minted.length === 1 && transfers.length <= 2) { + if (minted.length === 1 && newEvent.assetsSent.length <= 1) { const price = newEvent.assetsSent.length === 1 ? newEvent.assetsSent[0] : undefined return { ...newEvent, diff --git a/packages/transaction-interpreter/interpreters/zeroEx.ts b/packages/transaction-interpreter/interpreters/zeroEx.ts index a70641a5..fa7d8793 100644 --- a/packages/transaction-interpreter/interpreters/zeroEx.ts +++ b/packages/transaction-interpreter/interpreters/zeroEx.ts @@ -5,6 +5,8 @@ import type { DecodedTransaction } from '@3loop/transaction-decoder' export function transformEvent(event: DecodedTransaction): InterpretedTransaction { const newEvent = categorizedDefaultEvent(event) + if (newEvent.type !== 'unknown') return newEvent + if (!event.toAddress) return newEvent const filteredTransfers = filterTransfers(event.transfers, {