faucet sends native to vault for fees
This commit is contained in:
@@ -17,8 +17,10 @@ export async function faucet( chainId, owner, vault=null ) {
|
|||||||
)
|
)
|
||||||
let nonce = await provider.getTransactionCount(faucet.address, 'pending')
|
let nonce = await provider.getTransactionCount(faucet.address, 'pending')
|
||||||
faucet = new ethers.NonceManager(faucet)
|
faucet = new ethers.NonceManager(faucet)
|
||||||
console.log('faucet sending native coin to', owner)
|
console.log('faucet sending native coin to owner:', owner)
|
||||||
await faucet.sendTransaction({to:owner, value:1n *10n**18n, nonce: nonce++})
|
await faucet.sendTransaction({to:owner, value:1n *10n**18n, nonce: nonce++})
|
||||||
|
console.log('faucet sending native coin to vault:', vault)
|
||||||
|
await faucet.sendTransaction({to:vault, value:1n *10n**18n, nonce: nonce++})
|
||||||
const info = chainInfo[chainId]
|
const info = chainInfo[chainId]
|
||||||
if( info.mockCoins ) {
|
if( info.mockCoins ) {
|
||||||
const [coinAddr, usdAddr] = info.mockCoins
|
const [coinAddr, usdAddr] = info.mockCoins
|
||||||
|
|||||||
Reference in New Issue
Block a user