faucet crash protection

This commit is contained in:
Tim
2024-03-28 22:56:33 -04:00
parent a626407b65
commit ed524d670e

View File

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