faucet native coin fix

This commit is contained in:
Tim
2024-04-12 02:09:34 -04:00
parent 59740cf6e9
commit 347a521d37

View File

@@ -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