forked from massun-onibakuchi/sol-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.test.ts
More file actions
24 lines (20 loc) · 811 Bytes
/
template.test.ts
File metadata and controls
24 lines (20 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { ethers } from 'hardhat'
import { Contract } from 'ethers'
import { expect } from 'chai'
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'
// Replace CHALLENGE_CONTRACT with a contract name you want to deploy
// import { CHALLENGE_CONTRACT } from '../typechain-types'
/// Template
describe('Challenge Name', async function () {
let player: SignerWithAddress
let challenge: Contract
beforeEach(async function () {
;[player] = await ethers.getSigners()
// const Challenge = await ethers.getContractFactory('CHALLENGE_CONTRACT')
// challenge = await Challenge.deploy(<constructor args>,{ value: <ETH value to send> })
})
it('Attack', async function () {
// describe how to exploit the challenge
// expect(await challenge.isSolved()).to.be.true
})
})