From 46880bda8f4ebe6fc9f599ab991158951a511990 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 18 Mar 2024 09:39:36 +0100 Subject: [PATCH] Added problematic JSON file https://github.com/LedgerHQ/ledger-live/issues/6065 --- .../eip712_input_files/14-rabby_bug-data.json | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 tests/ragger/eip712_input_files/14-rabby_bug-data.json diff --git a/tests/ragger/eip712_input_files/14-rabby_bug-data.json b/tests/ragger/eip712_input_files/14-rabby_bug-data.json new file mode 100644 index 0000000..806a392 --- /dev/null +++ b/tests/ragger/eip712_input_files/14-rabby_bug-data.json @@ -0,0 +1,61 @@ +{ + "types": { + "BatchSignedERC721Orders": [ + { "type": "address", "name": "maker" }, + { "type": "uint256", "name": "listingTime" }, + { "type": "uint256", "name": "expiryTime" }, + { "type": "uint256", "name": "startNonce" }, + { "type": "address", "name": "erc20Token" }, + { "type": "address", "name": "platformFeeRecipient" }, + { "type": "BasicCollection[]", "name": "basicCollections" }, + { "type": "Collection[]", "name": "collections" }, + { "type": "uint256", "name": "hashNonce" } + ], + "BasicCollection": [ + { "type": "address", "name": "nftAddress" }, + { "type": "bytes32", "name": "fee" }, + { "type": "bytes32[]", "name": "items" } + ], + "Collection": [ + { "type": "address", "name": "nftAddress" }, + { "type": "bytes32", "name": "fee" }, + { "type": "OrderItem[]", "name": "items" } + ], + "OrderItem": [ + { "type": "uint256", "name": "erc20TokenAmount" }, + { "type": "uint256", "name": "nftId" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ] + }, + "domain": { + "name": "ElementEx", + "version": "1.0.0", + "chainId": "5000", + "verifyingContract": "0x2fa13cf695ec51ded5b8e45ad0bef838ab17e2af" + }, + "primaryType": "BatchSignedERC721Orders", + "message": { + "maker": "0x6d3b90747dbf5883bf88ff7eb5fcc86f408b5409", + "listingTime": "1706688449", + "expiryTime": "1709280466", + "startNonce": "7", + "erc20Token": "0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9", + "platformFeeRecipient": "0x7538262ae993ca117a0e481f908209137a4626e", + "basicCollections": [ + { + "nftAddress": "0xaaaea1fb9f3de3f70e89f37b69ab11b47eb9ce6f", + "fee": "0x000000000000000000c80000000000000000000000000000000000000000000", + "items": [ + "0x000000000000000020c8558000000000000000000000000000000000000005d" + ] + } + ], + "collections": [], + "hashNonce": "0" + } +}