From d10637e9d1c7dc476f0f29b07c425a076d406b2f Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 19 Nov 2022 00:03:37 -0800 Subject: [PATCH] remove test --- src/Contracts.svelte | 2 +- src/tst.js | 37 ------------------------------------- 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 src/tst.js diff --git a/src/Contracts.svelte b/src/Contracts.svelte index 855ca78..5ac5cf8 100644 --- a/src/Contracts.svelte +++ b/src/Contracts.svelte @@ -190,7 +190,7 @@ await estimateCBT(recipients, tokens, isERC1155); await estimateSTF(recipients, tokens, isERC1155); let gasPrice = await $web3.eth.getGasPrice(); - // gasPrice = 15000000000; // override for testing + gasPrice = 15000000000; // override for testing let gasPriceGwei = await $web3.utils.fromWei(gasPrice.toString(), 'gwei'); let gasCostWei = gasPrice * gasLimit; let gasCostEth = await $web3.utils.fromWei(gasCostWei.toString()); diff --git a/src/tst.js b/src/tst.js deleted file mode 100644 index 2a1c636..0000000 --- a/src/tst.js +++ /dev/null @@ -1,37 +0,0 @@ - -let _addresses = [ - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', - '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', - '0x653d2d1d10c79017b2ea5f5a6f02d9ab6e725395', -]; - -let _tokens = [ - 1,5,3,5,1,1,2,2,2,2 -]; - -const counts = {}; - -for (var i = 0; i < _addresses.length; i++) { - let x = _addresses[i] + "_" + _tokens[i]; - counts[x] = (counts[x] || 0) + 1; -} - -let new_addr = []; -let new_token = []; -let new_amount = []; - -for (const [key, value] of Object.entries(counts)) { - new_addr.push(key.split('_')[0]); - new_token.push(key.split('_')[1]); - new_amount.push(value); -} -console.log(new_addr); -console.log(new_token); -console.log(new_amount); \ No newline at end of file