alpha deployment
This commit is contained in:
@@ -6,7 +6,7 @@ import {mockErc20Abi} from "./abi.js";
|
||||
|
||||
|
||||
export async function faucet( chainId, owner, vault=null ) {
|
||||
if( chainId === 31337 ) {
|
||||
if( chainId === 31337 || chainId === 53261 ) {
|
||||
if( vault === null )
|
||||
vault = vaultAddress(chainId, owner)
|
||||
const provider = getProvider(chainId);
|
||||
@@ -18,7 +18,7 @@ export async function faucet( chainId, owner, vault=null ) {
|
||||
let nonce = await provider.getTransactionCount(faucet.address, 'pending')
|
||||
faucet = new ethers.NonceManager(faucet)
|
||||
await faucet.sendTransaction({to:owner, value:1n *10n**18n, nonce: nonce++})
|
||||
const info = chainInfo[31337]
|
||||
const info = chainInfo[chainId]
|
||||
if( info.mockCoins ) {
|
||||
const [coinAddr, usdAddr] = info.mockCoins
|
||||
const signer = await provider.getSigner()
|
||||
|
||||
Reference in New Issue
Block a user