Log stuff

This commit is contained in:
Alex Forshtat
2022-04-22 22:29:12 +03:00
parent dadbafcb09
commit 67737edd61
2 changed files with 9 additions and 2 deletions

View File

@@ -16,6 +16,9 @@ let mnemonic = 'test '.repeat(11) + 'junk'
if (fs.existsSync(mnemonicFileName))
mnemonic = fs.readFileSync(mnemonicFileName!, "ascii");
console.log(mnemonic)
function getNetwork1(url: string) {
return {
url,

View File

@@ -27,8 +27,12 @@ import {TransactionReceipt} from "@ethersproject/abstract-provider/src.ts/index"
hre.deployments.get('TestCounter').then(d => d.address),
])
let provider = ethers.provider;
const ethersSigner = provider.getSigner()
console.log('entryPointAddress:', entryPointAddress, 'testCounterAddress:', testCounterAddress)
const provider = ethers.provider;
const ethersSigner = provider.getSigner(0)
const prefundAccountAddress = await ethersSigner.getAddress()
const prefundAccountBalance = await provider.getBalance(prefundAccountAddress)
console.log('using prefund account address', prefundAccountAddress, 'with balance', prefundAccountBalance.toString())
let sendUserOp