faucet native coin fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user