From 347a521d372ad15656dda63c9f0cb105b1be1cd0 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 12 Apr 2024 02:09:34 -0400 Subject: [PATCH] faucet native coin fix --- faucet.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/faucet.js b/faucet.js index 0f1e165..0e7c843 100644 --- a/faucet.js +++ b/faucet.js @@ -22,7 +22,7 @@ export async function gib( chainId, owner, vault, tokenAmounts ) { // mock_token_decimals[token] = Number(await contract.decimals()) // } // const bAmount = BigInt(Math.trunc(amount * 10**mock_token_decimals[token])) - if (token==='') { + if (token==='native') { console.log(`faucet sending native coin to ${owner} +${amount}`) await faucet.sendTransaction({to:owner, value:amount, nonce: nonce++}) } @@ -32,8 +32,6 @@ export async function gib( chainId, owner, vault, tokenAmounts ) { } } - console.log('faucet sending native coin to vault:', vault) - await faucet.sendTransaction({to:vault, value:1n *10n**18n, nonce: nonce++}) const info = chainInfo[chainId] if( info.mockCoins ) { const [coinAddr, usdAddr] = info.mockCoins