From e3da8f4543094353d08c7893f13dc14f6fcc2510 Mon Sep 17 00:00:00 2001 From: lisaoulmi Date: Fri, 3 Dec 2021 13:53:51 +0000 Subject: [PATCH 1/3] refactor: added signedPlugin true for mint token method --- tests/src/mint_token.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/mint_token.test.js b/tests/src/mint_token.test.js index 71d5d6d..1be5a04 100644 --- a/tests/src/mint_token.test.js +++ b/tests/src/mint_token.test.js @@ -7,7 +7,7 @@ const rawTxHex = "0x02f90172010684625900808518ae17a40083055d16946f2235864cf89707 // function create transaction -> serializedTx const testLabel = "Mint Token"; // <= Name of the test const testDirSuffix = "mint_token"; // <= directory to compare device snapshots to - +const signedPlugin = true const devices = [ { name: "nanos", @@ -22,5 +22,5 @@ const devices = [ ]; devices.forEach((device) => - processTest(device, contractName, testLabel, testDirSuffix, rawTxHex) // tester si on reçoit rawTx ou serializedTx + processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, signedPlugin) // tester si on reçoit rawTx ou serializedTx ); \ No newline at end of file From fb19d6e5e01ccb6ad910efbb47be3987e64d80ce Mon Sep 17 00:00:00 2001 From: lisaoulmi Date: Fri, 3 Dec 2021 13:54:37 +0000 Subject: [PATCH 2/3] refactor: removed useless comments --- tests/src/mint_token.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/src/mint_token.test.js b/tests/src/mint_token.test.js index 1be5a04..bdaa31f 100644 --- a/tests/src/mint_token.test.js +++ b/tests/src/mint_token.test.js @@ -4,7 +4,6 @@ const contractName = "PoapDelegatedMint"; // From : https://etherscan.io/tx/0x1c926a7d245bca1384527db34bfd31eb63b4177bb48097504fcbd2f340a05593 const rawTxHex = "0x02f90172010684625900808518ae17a40083055d16946f2235864cf897078fcdcc2854b76c482cd1687480b901043da5b8f0000000000000000000000000000000000000000000000000000000000000377300000000000000000000000000000000000000000000000000000000002a0c4c0000000000000000000000002fe50deacdb83eb8beababc73ac8d78cf478675f00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000041b9273bc96569b576e0dd193b51f0d06f9014a46bd49c528c224e58c7589862ae6df7f62f39a46f4f3d67d6d9a9adb0467631b53dbf999df94c139c380fe9ee2e1c00000000000000000000000000000000000000000000000000000000000000c080a0f9fd00402d510a7c89d81dbea9c93da5add1c923eaddeb8fcd20070c51768ff3a07bdf6784281b97b9edadcbec055ca24d8989d5496b336e264001af3df8c9d195"; -// function create transaction -> serializedTx const testLabel = "Mint Token"; // <= Name of the test const testDirSuffix = "mint_token"; // <= directory to compare device snapshots to const signedPlugin = true @@ -22,5 +21,4 @@ const devices = [ ]; devices.forEach((device) => - processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, signedPlugin) // tester si on reçoit rawTx ou serializedTx -); \ No newline at end of file + processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, signedPlugin) \ No newline at end of file From a7ccf4247e3b76c7bfe1a431c01df997cbf4f79e Mon Sep 17 00:00:00 2001 From: lisaoulmi Date: Fri, 3 Dec 2021 14:01:38 +0000 Subject: [PATCH 3/3] refactor: added semicolon at the end of the test --- tests/src/mint_token.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/src/mint_token.test.js b/tests/src/mint_token.test.js index bdaa31f..c04e6fc 100644 --- a/tests/src/mint_token.test.js +++ b/tests/src/mint_token.test.js @@ -21,4 +21,5 @@ const devices = [ ]; devices.forEach((device) => - processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, signedPlugin) \ No newline at end of file + processTest(device, contractName, testLabel, testDirSuffix, rawTxHex, signedPlugin) +); \ No newline at end of file