bugfix d'oh
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {ethers} from "ethers";
|
||||
import {getProvider} from "./blockchain.js";
|
||||
import {getProvider, getSigner} from "./blockchain.js";
|
||||
import {chainInfo} from "./chain.js";
|
||||
import {mockERC20Contract, newContract} from "./contract.js";
|
||||
import {metadata} from "./metadata.js";
|
||||
@@ -13,8 +13,7 @@ export async function gib( chainId, owner, vault, tokenAmounts ) {
|
||||
for (const t of metadata[421614].t) {
|
||||
if (t.s === 'USDC' && t.x.mock) {
|
||||
// print 10,000 USDC
|
||||
const provider = getProvider(chainId);
|
||||
const signer = await provider.getSigner() // regular server signer not the #8 faucet
|
||||
const signer = getSigner(421614);
|
||||
const usdc = await newContract(t.a, 'MockERC20', signer)
|
||||
await usdc.mint(vault, 10_000_000000)
|
||||
console.log(`minted 10,000 USDC to ${vault}`)
|
||||
|
||||
Reference in New Issue
Block a user