Skip to content

Commit

Permalink
Merge pull request #138 from Zondax/restriction_chainID
Browse files Browse the repository at this point in the history
Restriction ChainID
  • Loading branch information
ftheirs committed Aug 7, 2023
2 parents 53873a2 + 3c79973 commit 8fa6a08
Show file tree
Hide file tree
Showing 86 changed files with 867 additions and 466 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=0
# This is the minor version of this release
APPVERSION_N=23
# This is the patch version of this release
APPVERSION_P=7
APPVERSION_P=8
8 changes: 8 additions & 0 deletions app/src/parser_impl_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <zxmacros.h>

eth_tx_t eth_tx_obj;
#define FILECOIN_MAINNET_CHAINID 314

static parser_error_t parse_field(parser_context_t *ctx, uint32_t *fieldOffset,
uint32_t *len) {
Expand Down Expand Up @@ -52,6 +53,13 @@ static parser_error_t readChainID(parser_context_t *ctx, chain_id_t *chain_id) {
if (parse_field(ctx, &(chain_id->offset), &(chain_id->len)) != parser_ok)
return parser_invalid_rlp_data;

const uint8_t *chain = ctx->buffer + chain_id->offset;
uint64_t id = 0;
if (be_bytes_to_u64(chain, chain_id->len, &id) != 0 ||
id != FILECOIN_MAINNET_CHAINID) {
return parser_invalid_chain_id;
}

return parser_ok;
}

Expand Down
2 changes: 1 addition & 1 deletion deps/ledger-zxlib
24 changes: 12 additions & 12 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@
"Ledger"
],
"scripts": {
"test": "ts-node tests/pullImageKillOld.ts && jest"
"test": "ts-node tests/pullImageKillOld.ts && jest --maxConcurrency 2"
},
"dependencies": {
"@zondax/ledger-filecoin": "^0.13.0",
"@zondax/zemu": "^0.43.1"
"@zondax/zemu": "^0.44.0"
},
"devDependencies": {
"@ethereumjs/common": "^2.4.0",
"@ethereumjs/tx": "^3.2.0",
"@ledgerhq/hw-app-eth": "6.33.7",
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.2",
"@types/jest": "^29.5.3",
"@types/ledgerhq__hw-transport": "^4.21.3",
"@types/secp256k1": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"blakejs": "^1.2.1",
"bn.js": "^5.2.0",
"crypto-js": "4.1.1",
"elliptic": "^6.5.4",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-prettier": "^4.0.0",
"jest": "29.6.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"jest": "29.6.2",
"jest-serial-runner": "^1.1.0",
"js-sha256": "0.9.0",
"prettier": "^3.0.0",
"prettier": "^3.0.1",
"secp256k1": "^4.0.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
Binary file modified tests_zemu/snapshots/s-eth-asset_deposit/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-asset_deposit/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-asset_transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-asset_transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-basic_transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-basic_transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-basic_transfer_no_eip155/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-basic_transfer_no_eip155/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-contract_deploy_no_eip155/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-contract_deploy_no_eip155/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-erc721_approve_for_all/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-erc721_approve_for_all/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-erc721_safe_transfer_from/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-erc721_safe_transfer_from/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_contract_call/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_contract_call/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_contract_deploy/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_contract_deploy/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-legacy_transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-transfer/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-eth-transfer/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/sp-eth-asset_deposit/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-asset_deposit/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-asset_transfer/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-asset_transfer/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-basic_transfer/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-basic_transfer/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-basic_transfer_no_eip155/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-basic_transfer_no_eip155/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-contract_deploy_no_eip155/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-contract_deploy_no_eip155/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-erc721_approve_for_all/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-erc721_approve_for_all/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-erc721_safe_transfer_from/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-erc721_safe_transfer_from/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_contract_call/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_contract_call/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_contract_deploy/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_contract_deploy/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_transfer/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-legacy_transfer/00003.png
Binary file modified tests_zemu/snapshots/sp-eth-transfer/00002.png
Binary file modified tests_zemu/snapshots/sp-eth-transfer/00003.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/x-eth-asset_deposit/00002.png
Binary file modified tests_zemu/snapshots/x-eth-asset_deposit/00003.png
Binary file modified tests_zemu/snapshots/x-eth-asset_transfer/00002.png
Binary file modified tests_zemu/snapshots/x-eth-asset_transfer/00003.png
Binary file modified tests_zemu/snapshots/x-eth-basic_transfer/00002.png
Binary file modified tests_zemu/snapshots/x-eth-basic_transfer/00003.png
Binary file modified tests_zemu/snapshots/x-eth-basic_transfer_no_eip155/00002.png
Binary file modified tests_zemu/snapshots/x-eth-basic_transfer_no_eip155/00003.png
Binary file modified tests_zemu/snapshots/x-eth-contract_deploy_no_eip155/00002.png
Binary file modified tests_zemu/snapshots/x-eth-contract_deploy_no_eip155/00003.png
Binary file modified tests_zemu/snapshots/x-eth-erc721_approve_for_all/00002.png
Binary file modified tests_zemu/snapshots/x-eth-erc721_approve_for_all/00003.png
Binary file modified tests_zemu/snapshots/x-eth-erc721_safe_transfer_from/00002.png
Binary file modified tests_zemu/snapshots/x-eth-erc721_safe_transfer_from/00003.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_contract_call/00002.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_contract_call/00003.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_contract_deploy/00002.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_contract_deploy/00003.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_transfer/00002.png
Binary file modified tests_zemu/snapshots/x-eth-legacy_transfer/00003.png
Binary file modified tests_zemu/snapshots/x-eth-transfer/00002.png
Binary file modified tests_zemu/snapshots/x-eth-transfer/00003.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
8 changes: 5 additions & 3 deletions tests_zemu/tests/eth_legacy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const SIGN_TEST_DATA = [
value: 'abcdef00',
to: 'df073477da421520cf03af261b782282c304ad66',
},
chainId: 9867,
chainId: 314,
},
{
name: 'legacy_contract_deploy',
op: {
value: 'abcdef00',
data: '1a8451e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
},
chainId: 5,
chainId: 314,
},
{
name: 'legacy_contract_call',
Expand All @@ -53,21 +53,23 @@ const SIGN_TEST_DATA = [
value: 'abcdef01',
data: 'ee919d500000000000000000000000000000000000000000000000000000000000000001',
},
chainId: 689,
chainId: 314,
},
{
name: 'basic_transfer_no_eip155',
op: {
value: 'a1bcd400',
to: 'df073477da421520cf03af261b782282c304ad66',
},
chainId: 314,
},
{
name: 'contract_deploy_no_eip155',
op: {
value: '1',
data: '1a8451e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
},
chainId: 314,
},
]

Expand Down
16 changes: 8 additions & 8 deletions tests_zemu/tests/eth_tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,52 +36,52 @@ type TestData = {

const SIGN_TEST_DATA = [
{

name: 'transfer',
op: Buffer.from(
'02f5018402a8af41843b9aca00850d8c7b50e68303d090944a2962ac08962819a8a17661970e3c0db765565e8817addd0864728ae780c0',
'02f782013a8402a8af41843b9aca00850d8c7b50e68303d090944a2962ac08962819a8a17661970e3c0db765565e8817addd0864728ae780c0',
'hex',
),
}, // works
{

name: 'asset_transfer',
op: Buffer.from(
'f87c01856d6e2edc00830186a094010000000000000000000000000000000000000280b85441c9cc6fd27e26e70f951869fb09da685a696f0a79d338394f709c6d776d1318765981e69c09f0aa49864d8cc35699545b5e73a00000000000000000000000000000000000000000000000000123456789abcdef82a8688080',
'f87c01856d6e2edc00830186a094010000000000000000000000000000000000000280b85441c9cc6fd27e26e70f951869fb09da685a696f0a79d338394f709c6d776d1318765981e69c09f0aa49864d8cc35699545b5e73a00000000000000000000000000000000000000000000000000123456789abcdef82013a8080',
'hex',
),
},
{
name: 'asset_deposit',
op: Buffer.from(
'f87c01856d6e2edc00830186a094010000000000000000000000000000000000000280b85441c9cc6fd27e26e70f951869fb09da685a696f0a79d338394f709c6d776d1318765981e69c09f0aa49864d8cc35699545b5e73a00000000000000000000000000000000000000000000000000123456789abcdef82a8688080',
'f87c01856d6e2edc00830186a094010000000000000000000000000000000000000280b85441c9cc6fd27e26e70f951869fb09da685a696f0a79d338394f709c6d776d1318765981e69c09f0aa49864d8cc35699545b5e73a00000000000000000000000000000000000000000000000000123456789abcdef82013a8080',
'hex',
),
},
{
name: 'legacy_transfer',
op: Buffer.from(
'ed01856d6e2edc008252089428ee52a8f3d6e5d15f8b131996950d7f296c7952872bd72a248740008082a86a8080',
'ed01856d6e2edc008252089428ee52a8f3d6e5d15f8b131996950d7f296c7952872bd72a248740008082013a8080',
'hex',
),
},
{
name: 'erc721_safe_transfer_from',
op: Buffer.from(
'02f88d01198459682f00850b68b3c16882caf09434bc797f40df0445c8429d485232874b1556172880b86442842e0e00000000000000000000000077944eed8d4a00c8bd413f77744751a4d04ea34a0000000000000000000000005d4994bccdd28afbbc6388fbcaaec69dd44c04560000000000000000000000000000000000000000000000000000000000000201c0',
'02f88f82013a198459682f00850b68b3c16882caf09434bc797f40df0445c8429d485232874b1556172880b86442842e0e00000000000000000000000077944eed8d4a00c8bd413f77744751a4d04ea34a0000000000000000000000005d4994bccdd28afbbc6388fbcaaec69dd44c04560000000000000000000000000000000000000000000000000000000000000201c0',
'hex',
),
},
{
name: 'erc721_safe_transfer_from_data',
op: Buffer.from(
'02f90a73018001018402625a009457f1887a8bf19b14fc0df6fd9b2acc9af147ea8580b90a50b88d4fde0000000000000000000000000565df3f5aad5a45d340b98d1e95f255e238cdc30000000000000000000000009ebfb53fa8526906738856848a27cb11b0285c3f307fa76847d6ec39c1c90ef3b279e83cbf6e0028a6b83e4187615fd74610a22b00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000984cd1d89fb00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000500000000000000000000000057f1887a8bf19b14fc0df6fd9b2acc9af147ea850000000000000000000000000565df3f5aad5a45d340b98d1e95f255e238cdc3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000008a4e7acab240000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009ebfb53fa8526906738856848a27cb11b0285c3f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000120f5e9ef7883b4b3fb8cf59abccd6cbb3221e32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000632db0b000000000000000000000000000000000000000000000000000000000632f026700000000000000000000000000000000000000000000000000000000000000003d6ddb428fb83199f55e5d9db388798de7982e540559fdc8973690a3b311accd0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd2439da2e500000000000000000000000000000000000000000000000000000fd2439da2e50000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000057f1887a8bf19b14fc0df6fd9b2acc9af147ea85b8e627e97e5a9c349ce0e7d8ca289210292aaa23c77320258af4030ac9b35adc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000120f5e9ef7883b4b3fb8cf59abccd6cbb3221e320000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003cc103a500e000000000000000000000000000000000000000000000000000003cc103a500e00000000000000000000000000a7673ab3b0949a0efcd818c86c71fff7cd645ac70000000000000000000000000000000000000000000000000000000000000041a32300e377fe8acd87ecc64a6d759cbe16e561ee012bba31c0a1c673fc2e80f642b096e4cf17fc31a71af417fe090181f4857177fedd83a8e428603bfb88a8c01b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000307fa76847d6ec39c1c90ef3b279e83cbf6e0028a6b83e4187615fd74610a22b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000117ea1dd9ecc2fc4f863e0f383029c6787ba379f80958abb3fc8bc079f21b514a1cdff5f9224fd75fe6e01e4e0edf41998ccec816bb377663d05fd874c7681e7f3f4217fa579ba41e2f7ac70b632bafd704573470ae765bdd96f5673cc4475ab8fac02a3f70665924a8bde9ad181df13581e883212c1cfa6bf4a425b1760375c121bbd09628c48138b7ddcfad9520da9ad39d97f9a17d48a8239fd52c38108507146e91239dcbdeec3e09e7eb4c8ea3ce3026575cd900cce8a208605810732619241d1b1703af8e17d3fbd76a4c074e7a8518c8ef63539d723a67a20a73abd5b393a595f5aa992d118b650564b2ac4d7e5c01753b7f4a79dd8d67ac158eadae3ea335dfed47134d7a0e65d4911c5d7eb0f99a2b5d8161479922a5150238ea7473b73beb96f9da02359c26071bf9bd1524780ccac98a6e2535330e7b1be7a3d21b29ceb65854902f22ad2eb9099724e8cfe03078f5db93b617c2050249203495594295765be35854719956ab6e36fed9dd9ab629c010525c9d20e9502727a7093f24717dc2d5d9f04333171bb1779f26370aae4912970f5e1b6c4778c0f3c7c672e5dd704d1fdcc69232ba5b996f1fed800b03e24acb02fef4214e0b46d01a515b600a6f5dcc80ac7a3753bff70bf1fb7557ce8dad801fec25bc7667244cc2e08f22981446ab788f9c223957f54016f4bb8870d9919b8316361f7332f5c2f01fad1ec9ac757a737872c4beb7cf800b714b2a0613be1fa3569f1531c23ef423fd29600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f656e732e766973696f6e1fc0',
'02f90a7582013a8001018402625a009457f1887a8bf19b14fc0df6fd9b2acc9af147ea8580b90a50b88d4fde0000000000000000000000000565df3f5aad5a45d340b98d1e95f255e238cdc30000000000000000000000009ebfb53fa8526906738856848a27cb11b0285c3f307fa76847d6ec39c1c90ef3b279e83cbf6e0028a6b83e4187615fd74610a22b00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000984cd1d89fb00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000500000000000000000000000057f1887a8bf19b14fc0df6fd9b2acc9af147ea850000000000000000000000000565df3f5aad5a45d340b98d1e95f255e238cdc3000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000008a4e7acab240000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009ebfb53fa8526906738856848a27cb11b0285c3f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000120f5e9ef7883b4b3fb8cf59abccd6cbb3221e32000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000632db0b000000000000000000000000000000000000000000000000000000000632f026700000000000000000000000000000000000000000000000000000000000000003d6ddb428fb83199f55e5d9db388798de7982e540559fdc8973690a3b311accd0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd2439da2e500000000000000000000000000000000000000000000000000000fd2439da2e50000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000057f1887a8bf19b14fc0df6fd9b2acc9af147ea85b8e627e97e5a9c349ce0e7d8ca289210292aaa23c77320258af4030ac9b35adc00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000120f5e9ef7883b4b3fb8cf59abccd6cbb3221e320000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003cc103a500e000000000000000000000000000000000000000000000000000003cc103a500e00000000000000000000000000a7673ab3b0949a0efcd818c86c71fff7cd645ac70000000000000000000000000000000000000000000000000000000000000041a32300e377fe8acd87ecc64a6d759cbe16e561ee012bba31c0a1c673fc2e80f642b096e4cf17fc31a71af417fe090181f4857177fedd83a8e428603bfb88a8c01b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000307fa76847d6ec39c1c90ef3b279e83cbf6e0028a6b83e4187615fd74610a22b00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000117ea1dd9ecc2fc4f863e0f383029c6787ba379f80958abb3fc8bc079f21b514a1cdff5f9224fd75fe6e01e4e0edf41998ccec816bb377663d05fd874c7681e7f3f4217fa579ba41e2f7ac70b632bafd704573470ae765bdd96f5673cc4475ab8fac02a3f70665924a8bde9ad181df13581e883212c1cfa6bf4a425b1760375c121bbd09628c48138b7ddcfad9520da9ad39d97f9a17d48a8239fd52c38108507146e91239dcbdeec3e09e7eb4c8ea3ce3026575cd900cce8a208605810732619241d1b1703af8e17d3fbd76a4c074e7a8518c8ef63539d723a67a20a73abd5b393a595f5aa992d118b650564b2ac4d7e5c01753b7f4a79dd8d67ac158eadae3ea335dfed47134d7a0e65d4911c5d7eb0f99a2b5d8161479922a5150238ea7473b73beb96f9da02359c26071bf9bd1524780ccac98a6e2535330e7b1be7a3d21b29ceb65854902f22ad2eb9099724e8cfe03078f5db93b617c2050249203495594295765be35854719956ab6e36fed9dd9ab629c010525c9d20e9502727a7093f24717dc2d5d9f04333171bb1779f26370aae4912970f5e1b6c4778c0f3c7c672e5dd704d1fdcc69232ba5b996f1fed800b03e24acb02fef4214e0b46d01a515b600a6f5dcc80ac7a3753bff70bf1fb7557ce8dad801fec25bc7667244cc2e08f22981446ab788f9c223957f54016f4bb8870d9919b8316361f7332f5c2f01fad1ec9ac757a737872c4beb7cf800b714b2a0613be1fa3569f1531c23ef423fd29600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f656e732e766973696f6e1fc0',
'hex',
),
},
{
name: 'erc721_approve_for_all',
op: Buffer.from(
'02f86f0182034a8459682f00850322d538d182b67094bd3f82a81c3f74542736765ce4fd579d177b6bc580b844a22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c710000000000000000000000000000000000000000000000000000000000000001c0',
'02f87182013a82034a8459682f00850322d538d182b67094bd3f82a81c3f74542736765ce4fd579d177b6bc580b844a22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c710000000000000000000000000000000000000000000000000000000000000001c0',
'hex',
),
},
Expand Down
2 changes: 1 addition & 1 deletion tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {getDigest} from "./utils";
import * as secp256k1 from "secp256k1";
import { models, defaultOptions, PATH } from './common'

jest.setTimeout(90000)
jest.setTimeout(180000)

describe('Standard', function () {
test.concurrent.each(models)('can start and stop container', async function (m) {
Expand Down
Loading

0 comments on commit 8fa6a08

Please sign in to comment.