From c620e9103ace82d35b3ec80627ddc234c4c3fd54 Mon Sep 17 00:00:00 2001 From: Z4karia <92750334+Z4karia@users.noreply.github.com> Date: Tue, 21 Mar 2023 13:28:48 +0000 Subject: [PATCH 1/5] feat: implemented MultiMint1155::mint --- src/contract.c | 7 +++++- src/handle_finalize.c | 3 +++ src/handle_init_contract.c | 3 +++ src/handle_provide_parameter.c | 23 +++++++++++++++++++ src/handle_query_contract_id.c | 3 +++ src/handle_query_contract_ui.c | 12 ++++++++++ src/ledger_nft_plugin.h | 3 ++- .../ethereum_goerli/ledgerNFT/b2c.json | 5 ++++ 8 files changed, 57 insertions(+), 2 deletions(-) diff --git a/src/contract.c b/src/contract.c index 9f97c23..37cd2f7 100644 --- a/src/contract.c +++ b/src/contract.c @@ -1,6 +1,6 @@ #include "ledger_nft_plugin.h" -// Function: mint +// Function: mint (MultiMintContractNFT, StableMultiMintERC721) // Selector: 0xa0712d68 static const uint8_t MINT_SELECTOR[SELECTOR_SIZE] = {0xa0, 0x71, 0x2d, 0x68}; @@ -32,6 +32,10 @@ static const uint8_t BID_SELECTOR[SELECTOR_SIZE] = {0x45, 0x4a, 0x2a, 0xb3}; // Selector: 0xe8083863 static const uint8_t FINALIZE_AUCTION_SELECTOR[SELECTOR_SIZE] = {0xe8, 0x08, 0x38, 0x63}; +// Function: mint (MultiMint1155) +// Selector: 0x08dc9f42 +static const uint8_t MINT_V2_SELECTOR[SELECTOR_SIZE] = {0x08, 0xdc, 0x9f, 0x42}; + // Plugin uses 0x00000 as a dummy address to reprecent ETH. const uint8_t NULL_ETH_ADDRESS[ADDRESS_LENGTH] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -47,6 +51,7 @@ const uint8_t *const LEDGER_NFT_SELECTORS[NUM_SELECTORS] = { MINT_SIGN_V2_SELECTOR, BID_SELECTOR, FINALIZE_AUCTION_SELECTOR, + MINT_V2_SELECTOR, }; static const uint8_t MULTI_MINT_CONTRACT_NFT_ADDRESS[ADDRESS_LENGTH] = { diff --git a/src/handle_finalize.c b/src/handle_finalize.c index d279228..a16b086 100644 --- a/src/handle_finalize.c +++ b/src/handle_finalize.c @@ -16,6 +16,9 @@ void handle_finalize(void *parameters) { case BID: msg->numScreens = 2; break; + case MINT_V2: + msg->numScreens = 3; + break; case MINT_SIGN_V2: msg->numScreens = 4; break; diff --git a/src/handle_init_contract.c b/src/handle_init_contract.c index d1af8d2..71fdd25 100644 --- a/src/handle_init_contract.c +++ b/src/handle_init_contract.c @@ -46,6 +46,9 @@ void handle_init_contract(void *parameters) { case FINALIZE_AUCTION: context->next_param = AUCTION_ID; break; + case MINT_V2: + context->next_param = TOKEN_ID; + break; default: PRINTF("Missing selectorIndex: %d\n", context->selectorIndex); msg->result = ETH_PLUGIN_RESULT_ERROR; diff --git a/src/handle_provide_parameter.c b/src/handle_provide_parameter.c index 219d961..d18b658 100644 --- a/src/handle_provide_parameter.c +++ b/src/handle_provide_parameter.c @@ -81,6 +81,26 @@ void handle_auction(ethPluginProvideParameter_t *msg, context_t *context) { } } +void handle_mint_v2(ethPluginProvideParameter_t *msg, context_t *context) { + switch (context->next_param) { + case TOKEN_ID: + // Using context->token_id to store the auctionId + handle_token_id(msg, context); + context->next_param = AMOUNT; + break; + case AMOUNT: + handle_amount(msg, context); + context->next_param = NONE; + break; + case NONE: + break; + default: + PRINTF("Param not supported\n"); + msg->result = ETH_PLUGIN_RESULT_ERROR; + break; + } +} + void handle_provide_parameter(void *parameters) { ethPluginProvideParameter_t *msg = (ethPluginProvideParameter_t *) parameters; context_t *context = (context_t *) msg->pluginContext; @@ -115,6 +135,9 @@ void handle_provide_parameter(void *parameters) { case FINALIZE_AUCTION: handle_auction(msg, context); break; + case MINT_V2: + handle_mint_v2(msg, context); + break; default: PRINTF("Selector Index not supported: %d\n", context->selectorIndex); msg->result = ETH_PLUGIN_RESULT_ERROR; diff --git a/src/handle_query_contract_id.c b/src/handle_query_contract_id.c index a4c8037..dac5d33 100644 --- a/src/handle_query_contract_id.c +++ b/src/handle_query_contract_id.c @@ -44,6 +44,9 @@ void handle_query_contract_id(void *parameters) { case FINALIZE_AUCTION: strlcpy(msg->version, "Finalize Auction", msg->versionLength); break; + case MINT_V2: + strlcpy(msg->version, "MultiMint1155 - Mint", msg->versionLength); + break; default: PRINTF("Selector index: %d not supported\n", context->selectorIndex); msg->result = ETH_PLUGIN_RESULT_ERROR; diff --git a/src/handle_query_contract_ui.c b/src/handle_query_contract_ui.c index 7d68ce3..1542c10 100644 --- a/src/handle_query_contract_ui.c +++ b/src/handle_query_contract_ui.c @@ -96,6 +96,18 @@ static screens_t get_screen(const ethQueryContractUI_t *msg, return ERROR; } break; + case MINT_V2: + switch (index) { + case 0: + return TOKEN_ID_SCREEN; + case 1: + return AMOUNT_SCREEN; + case 2: + return PAYABLE_AMOUNT_SCREEN; + default: + return ERROR; + } + break; default: PRINTF("Selector index: %d not supported\n", context->selectorIndex); return ERROR; diff --git a/src/ledger_nft_plugin.h b/src/ledger_nft_plugin.h index 369b7dd..9624a8f 100644 --- a/src/ledger_nft_plugin.h +++ b/src/ledger_nft_plugin.h @@ -4,7 +4,7 @@ #include "eth_internals.h" #include "eth_plugin_interface.h" -#define NUM_SELECTORS 8 +#define NUM_SELECTORS 9 #define NUM_CONTRACTS 4 #define PLUGIN_NAME "Ledger NFT" #define TOKEN_FOUND 1 << 1 @@ -25,6 +25,7 @@ typedef enum { MINT_SIGN_V2, BID, FINALIZE_AUCTION, + MINT_V2, } selector_t; // Enumeration used to parse the smart contract data. diff --git a/tests/networks/ethereum_goerli/ledgerNFT/b2c.json b/tests/networks/ethereum_goerli/ledgerNFT/b2c.json index 835fbae..7ec1eb6 100644 --- a/tests/networks/ethereum_goerli/ledgerNFT/b2c.json +++ b/tests/networks/ethereum_goerli/ledgerNFT/b2c.json @@ -51,6 +51,11 @@ "erc20OfInterest": [], "method": "mintSign", "plugin": "LedgerNFT" + }, + "0x08dc9f42": { + "erc20OfInterest": [], + "method": "mint", + "plugin": "LedgerNFT" } } }, From 3608bd3ec906080e66908a855cce2420b2b208b6 Mon Sep 17 00:00:00 2001 From: Z4karia <92750334+Z4karia@users.noreply.github.com> Date: Tue, 21 Mar 2023 13:30:41 +0000 Subject: [PATCH 2/5] test: add tests for MultiMint1155::mint --- .../00000.png | Bin 0 -> 374 bytes .../00001.png | Bin 0 -> 413 bytes .../00002.png | Bin 0 -> 287 bytes .../00003.png | Bin 0 -> 287 bytes .../00004.png | Bin 0 -> 308 bytes .../00005.png | Bin 0 -> 358 bytes .../00006.png | Bin 0 -> 414 bytes .../00007.png | Bin 0 -> 349 bytes .../00000.png | Bin 0 -> 414 bytes .../00001.png | Bin 0 -> 463 bytes .../00002.png | Bin 0 -> 329 bytes .../00003.png | Bin 0 -> 325 bytes .../00004.png | Bin 0 -> 364 bytes .../00005.png | Bin 0 -> 417 bytes .../00006.png | Bin 0 -> 472 bytes .../00007.png | Bin 0 -> 382 bytes .../00000.png | Bin 0 -> 414 bytes .../00001.png | Bin 0 -> 463 bytes .../00002.png | Bin 0 -> 329 bytes .../00003.png | Bin 0 -> 325 bytes .../00004.png | Bin 0 -> 364 bytes .../00005.png | Bin 0 -> 417 bytes .../00006.png | Bin 0 -> 472 bytes .../00007.png | Bin 0 -> 382 bytes tests/src/mintMM1155.test.js | 47 ++++++++++++++++++ 25 files changed, 47 insertions(+) create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00000.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00001.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00002.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00003.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00004.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00005.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00006.png create mode 100644 tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00007.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00000.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00001.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00002.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00003.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00004.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00005.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00006.png create mode 100644 tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00007.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00000.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00001.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00002.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00003.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00004.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00005.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00006.png create mode 100644 tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00007.png create mode 100644 tests/src/mintMM1155.test.js diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00000.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00000.png new file mode 100644 index 0000000000000000000000000000000000000000..8d84cc70fea8013b7e8b25c0982ce142fa103d5c GIT binary patch literal 374 zcmV-+0g3*JP)K?4J2QqX3 zXn7ePqhBDwvA-|J28LIrjF%tX0z{3v6!_gF&(SYH)S*7TN;1RxW-%}TLH9_+sttDO z-T32w&rL(!1@Vr`jm5G(8dd=Ruu#)JAN?l#rFLU`oQ(r?$33AC7s0}pw!fi~(9k^# zU9aci?pXN=I7A<-f!Mw2untnw9MivqZYw}c5&)gweYhbTnv#2#t$0X2wST7_1F;LR zw?>Da2SkSfG>qWq1mej-6nW@2l+Z=0om5jdB%3o3Qx19_LNUlTqF4R_1Iaj%@^2O= z@;n%h1N>H$2;%-~Dvx1!0LtkT-;cq73rgisOElFtPbcL{d3TfNQvm<~003s>1*i4o Uje8$F8UO$Q07*qoM6N<$g5rpv%m4rY literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00001.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00001.png new file mode 100644 index 0000000000000000000000000000000000000000..2f677bdcec07ffd3db06e5f90cb19361c8114525 GIT binary patch literal 413 zcmV;O0b>4%P)Y(9`(dnUi?5TOo`ZQnm+$gll2CWP&hH~txPD*XOWZ#fF}U=I6H^eCXOFxg{fjGe zHSB;PZkLb7er1!H{Hy~~y5NZ-%RFL3+G=U4aX*A3kenBQ7(0NUoL0TvLYR>p^|xgmOI)m2LJ#70EodGWg$&^Wg<9*00000NkvXX Hu0mjfeml8W literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00002.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00002.png new file mode 100644 index 0000000000000000000000000000000000000000..db278b365cfdf067e4bc1cf56e91dfab0e687592 GIT binary patch literal 287 zcmV+)0pR|LP)i>VR3%jssD8dNZGBbEjx~UK_Z$Kl{1OT|JpgjM&eEkix)Kh4!oNF7Q ze$u;05;@(ca)e~4>my(ARGeG#31z=LQmfFv)UzY2J0NTS z8c@ydCtMXE%xMk$KW84=H_&LS!9YyzfH-AgjaPQdvirIoYkiq>5HIO>Pz;&$yU9dN z`khe&O+1A(xqlC@%lo&#XrGIltR);1`QhzLILp?TRGT3R00qKnGyX1{H3jIT6tvF* lm^=+Vbovk!0000syZ}u9c_zOa%;Nw6002ovPDHLkV1iMLd7A(L literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00003.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00003.png new file mode 100644 index 0000000000000000000000000000000000000000..1a73e405927c4dcf8ded22229deb1b98c4c08738 GIT binary patch literal 287 zcmV+)0pR|LP);P)8m+ivS zZ)RPGeKV4Xh=_=s_yAoxeGxOEPjUbN002ovPDHLkV1lv2gY^Ia literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00004.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00004.png new file mode 100644 index 0000000000000000000000000000000000000000..1ce6d61bf39abc7b837e30d4d66ee47a069dcea7 GIT binary patch literal 308 zcmV-40n7f0P)Mf0hL9pc2qA>TbG<~bATxLM-8_IX`y9Q1 zIju%zdp?$JoX|$}c=(R=X4m=I(L2B#>%r&2P)^Yc5RoQZ+f2^^ObJS+dj-Y-UDj3x@9@tqcz!Lc|cn0iD z-ow`qV4LGlOOOek`jW^1Nc9D=1pTgG1nEQxA%qY@h{z3Zh=){kS5c?{0000py!C9JIc{)5O z@z$QeIQ9`eWZ?jWi`t2Mo$*Db2R}Hn&;ifF{eG`PbQ=vzUeGZ$-(viTv&jx{*n>+F z$sJSlS-F{}u|NPAS#vt({Ipt{4zxMEv>x1pQ_2Ty6vG|1u)q#rxT8xbt6SjIvSJcm zATRwh1$m*q09lctz8DFqp}sJPfhIVGH2D>obVJ8hCB^DASqdfRP^^LZu4>Ved?oGf z&gPIV`f^(;vh%m0~_?r8>V7uBj~f|{k#}B z4)Di%0(GQh%XXzDG$sKK-Q2JkKR-`QsiPFD-4d_!i{fwH;J|_aEL%ZYNu#B0FJ7G| z;=_VQWOA9;dQ4Y9)LpKCV=ri`X({49JagUwO3&5UdSK)wEJxPN%9wG}45n;lzK(aC zKtbL$y*-#9uSql`7 zENOEh^0jsFWbV&<+yj5)WEX_aERLO-`${sQhD#B5ZCio#Fr4qHlr^7X|9DL69eFa= z#kf#}$Pcl(QEE=tNl8Pt$o;~Fk*8r@j8mpwSGW8d!1&11FbzPh@^gWj=oh7f%f7G)4s^6#xJL07*qo IM6N<$g02I(Gynhq literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00007.png b/tests/snapshots/ethereum_goerli_nanos_mint_mm1155/00007.png new file mode 100644 index 0000000000000000000000000000000000000000..ce795f34e8569e986af689fded3b59c9a8af2961 GIT binary patch literal 349 zcmV-j0iyniP)O41}p;-~WL<=z+0=1Om1tEU@3H#qtw22}5*_5JCvCo4!52c$FXo$VhXU?0M$^Bekqgf%Ka;M*^X|4 zEs9YCQ(xfJKmNC#+8dY%2&wT+>D^<3C%}_*k1^mvtO~`RE00000NkvXXu0mjf-kqOA literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00000.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00000.png new file mode 100644 index 0000000000000000000000000000000000000000..487ea10fcfeb2f3e6b79239459672251d49addd7 GIT binary patch literal 414 zcmV;P0b%}$P)vpO}&+|8}fC)JNq`>?#dJ%s{^>GN_4usXQirk{^@^BA?p!El9&T9q~zMsh2=YdLB`_ONiP zKy6XlUGFZ>Cn7mP3u*(L2CC*uNz1000=I3zFL*9bqZVWfm7}*6>NTf_vL!>Npn?$I literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00002.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00002.png new file mode 100644 index 0000000000000000000000000000000000000000..d14c4117767fc7db5db3b9a5fbb500a3fdc0d79a GIT binary patch literal 329 zcmV-P0k-~$P)$_$CT1R3j+$f1F8;Y ziR#;O2tR7j=WIV>paPWhKx>`I;|`oXK4Q2j=q+;%_NsyIfHKYeNIv#&ko#t!0xYkk zyjv%(%tG65?^IC$fGLFShMrd4>hUxgAm5N!LU%N;80(MNIa3e(I~0HbuWX(2E!C_Q zpp#b6lNMmV2261o7dJrzJvrwYFKIf>kfq;EC2Hw+rUsGBLXoV)k;DrC0000000000 b0AKSDK%=1AxDOfL00000NkvXXu0mjfL~M^W literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00003.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00003.png new file mode 100644 index 0000000000000000000000000000000000000000..6b8ceef85cb8d17b6cbab1139cc11252d7f5e2c7 GIT binary patch literal 325 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|{6&ba4!+nDh2VB44utPg~-) zH)?nOd+a@3r=u);_>Awv#gA+MNp8&QZk-_n)MRkSwIbj6bGzm9y7HGIHU`F@Sy%A+ z_w4yR<&^JV2HwCJj$&Y|_&F{Z&{xc=c_{WMy`De$& z1-ChI-oDZk?{GP1?PDFoeGNv==jSdlUUSBf>%!Es*(%x&nFmwTgO(mJFSq}(`owR4 zUEdjkm4?eQ9N$+<>p0r|WpwcVY5qmwKexwkmDSvPC-`mTjg@3QV7TzNe??0COZ!dn z>lruRJN4g(_u=8iY*mwYm`(Qi)}Fa!)*F5|-YGAfyw)7{S|Seg4>EZ1j89zopr08DXL}D|f5s+j{LatTP!H1sQ>Q^t?kuukIG-dv{M(Ku~j`eGbo~p6`cu zGdr)E6?7_5t2IVXe}@07C|_&e;IG+nf5IJ%gfPre z(U23W^Q(jXq`I_=r{nY92Y%z>LX+6`sl`p}4Re$#< zpyf4p_gH^eW+yW1I?uDSEtT(b{8s!uD#)`q_~)V8iILj&hSA++ANW7Izj^Iva(3|@ zR?*2jm2SD*)49Xo<99EOe@0HtvuTeK{?BakVO*?#U9w@u#p!hncZyfbP0l+XkK D%T||! literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00005.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mm1155/00005.png new file mode 100644 index 0000000000000000000000000000000000000000..89bfa0bd391e435763a683b94ffa7aaab7681d4e GIT binary patch literal 417 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|`Jfba4!+nDh2V^rRLA9*4lR ztg=J@rcc>>rd`$5*`a2_g{QXhVz&ikP!?ePc9Z*U2SvI~Pt|xq0uB$Jg$J ze#whrey*8eb96b^VzrHvBiH{_*Rf!I8tl7h--_Rw+K+O?SNHDIPXzj}eAaI1TlXtY zN_UF}|Fygkx$@d_y)7$Fo2-BOF*!6P)Nkl`l1;k+@4An6g^M6kcbtxu@7*hfO000000DuchDWw$aQJnB& zJ%BsK3VrpQ1hnYqoNY&PO0WdV>i`7cs)e_@w@x()p@w=B24`klR6(CLpxqtlZO|2 zIWjpO-F~*EHtLqUMt)Wc_@bMv^h#{CUFW0M(vJ1P=5N1GhWcHM(-Xu*&bc@D4_o$^ z7Y|pL)I@*DzttR=&yLH#^{|TW)8Sp0qphw%epiuSUG#WHS~ht|j~;`U4>BXmdi9@& zuz>%00000G5i7^TsbXePb2LB O0000sAjk5Y(@*V#~rbuHu`7A_H&AxgwHf8y4cdKvg$JbB4n%ez%sZ31aBYd&Oo@(7)_WJ(Znl2o8^PD` zFE`_Y-IS+Kdq0Q2-7r_C=}F(5ev`U`H~)QH|9$1FHE$YjoVax+e0xei%S`SAGlOm! zp7{T3NA-mVOYb&rdU8MdyIHo@@7cE*uj@I+Zu{2i)KMSV-E~ovpO}&+|8}fC)JNq`>?#dJ%s{^>GN_4usXQirk{^@^BA?p!El9&T9q~zMsh2=YdLB`_ONiP zKy6XlUGFZ>Cn7mP3u*(L2CC*uNz1000=I3zFL*9bqZVWfm7}*6>NTf_vL!>Npn?$I literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00002.png b/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00002.png new file mode 100644 index 0000000000000000000000000000000000000000..d14c4117767fc7db5db3b9a5fbb500a3fdc0d79a GIT binary patch literal 329 zcmV-P0k-~$P)$_$CT1R3j+$f1F8;Y ziR#;O2tR7j=WIV>paPWhKx>`I;|`oXK4Q2j=q+;%_NsyIfHKYeNIv#&ko#t!0xYkk zyjv%(%tG65?^IC$fGLFShMrd4>hUxgAm5N!LU%N;80(MNIa3e(I~0HbuWX(2E!C_Q zpp#b6lNMmV2261o7dJrzJvrwYFKIf>kfq;EC2Hw+rUsGBLXoV)k;DrC0000000000 b0AKSDK%=1AxDOfL00000NkvXXu0mjfL~M^W literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00003.png b/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00003.png new file mode 100644 index 0000000000000000000000000000000000000000..6b8ceef85cb8d17b6cbab1139cc11252d7f5e2c7 GIT binary patch literal 325 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|{6&ba4!+nDh2VB44utPg~-) zH)?nOd+a@3r=u);_>Awv#gA+MNp8&QZk-_n)MRkSwIbj6bGzm9y7HGIHU`F@Sy%A+ z_w4yR<&^JV2HwCJj$&Y|_&F{Z&{xc=c_{WMy`De$& z1-ChI-oDZk?{GP1?PDFoeGNv==jSdlUUSBf>%!Es*(%x&nFmwTgO(mJFSq}(`owR4 zUEdjkm4?eQ9N$+<>p0r|WpwcVY5qmwKexwkmDSvPC-`mTjg@3QV7TzNe??0COZ!dn z>lruRJN4g(_u=8iY*mwYm`(Qi)}Fa!)*F5|-YGAfyw)7{S|Seg4>EZ1j89zopr08DXL}D|f5s+j{LatTP!H1sQ>Q^t?kuukIG-dv{M(Ku~j`eGbo~p6`cu zGdr)E6?7_5t2IVXe}@07C|_&e;IG+nf5IJ%gfPre z(U23W^Q(jXq`I_=r{nY92Y%z>LX+6`sl`p}4Re$#< zpyf4p_gH^eW+yW1I?uDSEtT(b{8s!uD#)`q_~)V8iILj&hSA++ANW7Izj^Iva(3|@ zR?*2jm2SD*)49Xo<99EOe@0HtvuTeK{?BakVO*?#U9w@u#p!hncZyfbP0l+XkK D%T||! literal 0 HcmV?d00001 diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00005.png b/tests/snapshots/ethereum_goerli_nanox_mint_mm1155/00005.png new file mode 100644 index 0000000000000000000000000000000000000000..89bfa0bd391e435763a683b94ffa7aaab7681d4e GIT binary patch literal 417 zcmeAS@N?(olHy`uVBq!ia0vp^4M6O`!2~2@x4h6`U|`Jfba4!+nDh2V^rRLA9*4lR ztg=J@rcc>>rd`$5*`a2_g{QXhVz&ikP!?ePc9Z*U2SvI~Pt|xq0uB$Jg$J ze#whrey*8eb96b^VzrHvBiH{_*Rf!I8tl7h--_Rw+K+O?SNHDIPXzj}eAaI1TlXtY zN_UF}|Fygkx$@d_y)7$Fo2-BOF*!6P)Nkl`l1;k+@4An6g^M6kcbtxu@7*hfO000000DuchDWw$aQJnB& zJ%BsK3VrpQ1hnYqoNY&PO0WdV>i`7cs)e_@w@x()p@w=B24`klR6(CLpxqtlZO|2 zIWjpO-F~*EHtLqUMt)Wc_@bMv^h#{CUFW0M(vJ1P=5N1GhWcHM(-Xu*&bc@D4_o$^ z7Y|pL)I@*DzttR=&yLH#^{|TW)8Sp0qphw%epiuSUG#WHS~ht|j~;`U4>BXmdi9@& zuz>%00000G5i7^TsbXePb2LB O0000sAjk5Y(@*V#~rbuHu`7A_H&AxgwHf8y4cdKvg$JbB4n%ez%sZ31aBYd&Oo@(7)_WJ(Znl2o8^PD` zFE`_Y-IS+Kdq0Q2-7r_C=}F(5ev`U`H~)QH|9$1FHE$YjoVax+e0xei%S`SAGlOm! zp7{T3NA-mVOYb&rdU8MdyIHo@@7cE*uj@I+Zu{2i)KMSV-E~o { + processTest(device, contractName, testLabel, testDirSuffix, "", signedPlugin, serializedTx, testNetwork); +}); \ No newline at end of file From 5ff1d62b1daccfb8c96b70bffb608696b3cea985 Mon Sep 17 00:00:00 2001 From: Z4karia <92750334+Z4karia@users.noreply.github.com> Date: Tue, 21 Mar 2023 13:31:37 +0000 Subject: [PATCH 3/5] test: renamed test files --- .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin .../00007.png | Bin .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin .../00007.png | Bin .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin .../00000.png | Bin .../00001.png | Bin .../00002.png | Bin .../00003.png | Bin .../00004.png | Bin .../00005.png | Bin .../00006.png | Bin tests/src/{mint.test.js => mintMMNFT.test.js} | 4 ++-- tests/src/{mintV2.test.js => mintSMM721.test.js} | 4 ++-- 46 files changed, 4 insertions(+), 4 deletions(-) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00006.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint => ethereum_goerli_nanos_mint_mmnft}/00007.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00006.png (100%) rename tests/snapshots/{ethereum_goerli_nanos_mint_v2 => ethereum_goerli_nanos_mint_smm721}/00007.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint => ethereum_goerli_nanosp_mint_mmnft}/00006.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanosp_mint_v2 => ethereum_goerli_nanosp_mint_smm721}/00006.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint => ethereum_goerli_nanox_mint_mmnft}/00006.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00000.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00001.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00002.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00003.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00004.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00005.png (100%) rename tests/snapshots/{ethereum_goerli_nanox_mint_v2 => ethereum_goerli_nanox_mint_smm721}/00006.png (100%) rename tests/src/{mint.test.js => mintMMNFT.test.js} (89%) rename tests/src/{mintV2.test.js => mintSMM721.test.js} (89%) diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00000.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00000.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00001.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00001.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00002.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00002.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00003.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00003.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00004.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00004.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00005.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00005.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00006.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00006.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00006.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint/00007.png b/tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00007.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint/00007.png rename to tests/snapshots/ethereum_goerli_nanos_mint_mmnft/00007.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00000.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00000.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00001.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00001.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00002.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00002.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00003.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00003.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00004.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00004.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00005.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00005.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00006.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00006.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00006.png diff --git a/tests/snapshots/ethereum_goerli_nanos_mint_v2/00007.png b/tests/snapshots/ethereum_goerli_nanos_mint_smm721/00007.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanos_mint_v2/00007.png rename to tests/snapshots/ethereum_goerli_nanos_mint_smm721/00007.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00000.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00000.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00001.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00001.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00002.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00002.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00003.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00003.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00004.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00004.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00005.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00005.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint/00006.png b/tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint/00006.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_mmnft/00006.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00000.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00000.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00001.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00001.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00002.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00002.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00003.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00003.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00004.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00004.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00005.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00005.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanosp_mint_v2/00006.png b/tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanosp_mint_v2/00006.png rename to tests/snapshots/ethereum_goerli_nanosp_mint_smm721/00006.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00000.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00000.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00001.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00001.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00002.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00002.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00003.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00003.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00004.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00004.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00005.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00005.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint/00006.png b/tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint/00006.png rename to tests/snapshots/ethereum_goerli_nanox_mint_mmnft/00006.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00000.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00000.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00000.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00000.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00001.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00001.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00001.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00001.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00002.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00002.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00002.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00002.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00003.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00003.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00003.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00003.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00004.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00004.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00004.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00004.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00005.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00005.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00005.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00005.png diff --git a/tests/snapshots/ethereum_goerli_nanox_mint_v2/00006.png b/tests/snapshots/ethereum_goerli_nanox_mint_smm721/00006.png similarity index 100% rename from tests/snapshots/ethereum_goerli_nanox_mint_v2/00006.png rename to tests/snapshots/ethereum_goerli_nanox_mint_smm721/00006.png diff --git a/tests/src/mint.test.js b/tests/src/mintMMNFT.test.js similarity index 89% rename from tests/src/mint.test.js rename to tests/src/mintMMNFT.test.js index 9eb44bd..3a43165 100644 --- a/tests/src/mint.test.js +++ b/tests/src/mintMMNFT.test.js @@ -2,8 +2,8 @@ import { processTest, populateTransaction } from "./test.fixture"; const contractName = "MultiMintContractNFT"; -const testLabel = "Mint"; // <= Name of the test -const testDirSuffix = "mint"; // <= directory to compare device snapshots to +const testLabel = "MintMMNFT"; // <= Name of the test +const testDirSuffix = "mint_mmnft"; // <= directory to compare device snapshots to const signedPlugin = false; const testNetwork = "ethereum_goerli"; diff --git a/tests/src/mintV2.test.js b/tests/src/mintSMM721.test.js similarity index 89% rename from tests/src/mintV2.test.js rename to tests/src/mintSMM721.test.js index cc904ed..eb578ff 100644 --- a/tests/src/mintV2.test.js +++ b/tests/src/mintSMM721.test.js @@ -2,8 +2,8 @@ import { processTest, populateTransaction } from "./test.fixture"; const contractName = "StableMultiMintERC721"; -const testLabel = "mintV2"; // <= Name of the test -const testDirSuffix = "mint_v2"; // <= directory to compare device snapshots to +const testLabel = "mintSMM721"; // <= Name of the test +const testDirSuffix = "mint_smm721"; // <= directory to compare device snapshots to const signedPlugin = false; const testNetwork = "ethereum_goerli"; From 673ad208b4c967a0564edfacbb3894cd773df911 Mon Sep 17 00:00:00 2001 From: Z4karia <92750334+Z4karia@users.noreply.github.com> Date: Tue, 21 Mar 2023 14:32:22 +0000 Subject: [PATCH 4/5] docs: update readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f5d823..2f24fb0 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,13 @@ On these smart contracts, the functions covered by this plugin are: |StableMultiMintERC721 |stableMintSign | 0x11413601|
uint256 amount
| |StableMultiMintERC721 |stableMint | 0x804b936f|
uint256 amount
| |StableMultiMintERC721 |mintSign | 0xf39247a9|
uint256 amount
| -|StableMultiMintERC721 |mint (v2) | 0xa0712d68|
uint256 amount
| +|StableMultiMintERC721 |mint | 0xa0712d68|
uint256 amount
| |MultiMint1155 | mintSign (v2) | 0x657bb113|
uint256 tokenId
uint256 amount
address pass
| |AuctionCore |bid | 0x454a2ab3|
uint256 auctionId
| |AuctionCore |finalizeAuction| 0xe8083863|
uint256 auctionId
| +|MultiMint1155 | mint (v2) | 0x08dc9f42|
uint256 tokenId
uint256 amount
| + +> **Note:** Only the third `mint` function is labelled as v2 because the first two share the same selector and behave identically. ## Build From 8c72e371372094ed87885beb9ea59840c5995f69 Mon Sep 17 00:00:00 2001 From: Z4karia <92750334+Z4karia@users.noreply.github.com> Date: Tue, 21 Mar 2023 14:32:49 +0000 Subject: [PATCH 5/5] build: bump version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d93f8e0..7b1d929 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ APP_LOAD_PARAMS += --appFlags 0x800 --path "44'/60'" --path "45'" --path "44'/1' APP_LOAD_PARAMS += $(COMMON_LOAD_PARAMS) APPVERSION_M = 1 -APPVERSION_N = 4 +APPVERSION_N = 5 APPVERSION_P = 0 APPVERSION = $(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)