Skip to content

Commit

Permalink
add setRequiredDeposit to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hollygrimm committed Nov 3, 2023
1 parent 34f8d41 commit cadeb90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hardhat/scripts/run-cowsay-onchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)}`)
Expand Down

0 comments on commit cadeb90

Please sign in to comment.