faucet crash protection
This commit is contained in:
@@ -5,7 +5,7 @@ import {mockErc20Abi} from "./abi.js";
|
||||
|
||||
|
||||
export async function gib( chainId, owner, vault, tokenAmounts ) {
|
||||
if( chainId === 31337 || chainId === 1337 ) {
|
||||
if( (chainId === 31337 || chainId === 1337) && owner !== null && vault !== null ) {
|
||||
const provider = getProvider(chainId);
|
||||
let faucet = new ethers.Wallet(
|
||||
// Dev Account #8
|
||||
|
||||
Reference in New Issue
Block a user