diff --git a/hardhat/scripts/run-cowsay-onchain.ts b/hardhat/scripts/run-cowsay-onchain.ts index d6ba46fb..d54e0116 100644 --- a/hardhat/scripts/run-cowsay-onchain.ts +++ b/hardhat/scripts/run-cowsay-onchain.ts @@ -6,6 +6,7 @@ import { getWallet, getAddress, } from '../utils/web3' +import { ethers } from 'hardhat' async function main() { // it's annoying to not be able to use argv but hardhat complains about it @@ -15,6 +16,11 @@ async function main() { const manager = await connectJobManager() const client = await connectExampleClient() + const setRequiredDepositTx = await manager + .connect(getWallet('solver')) + .setRequiredDeposit(ethers.parseEther("2")) + await setRequiredDepositTx.wait() + const requiredDeposit = await manager.getRequiredDeposit() console.log(`requiredDeposit: ${Number(requiredDeposit)}`)