Skip to content

Commit

Permalink
restore file
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Mar 1, 2022
1 parent b9c4f5a commit a78a430
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions contracts/tests/recipientRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers, waffle } from 'hardhat'
import { use, expect } from 'chai'
import { solidity } from 'ethereum-waffle'
import { BigNumber, Contract, Wallet } from 'ethers'
import { BigNumber, Contract } from 'ethers'
import { keccak256 } from '@ethersproject/solidity'
import { gtcrEncode } from '@kleros/gtcr-encoder'

Expand Down Expand Up @@ -523,14 +523,7 @@ describe('Kleros GTCR adapter', () => {
})

describe('Optimistic recipient registry', () => {
const [
,
deployer,
controller,
recipient,
requester,
challenger,
] = provider.getWallets()
const [, deployer, controller, recipient, requester] = provider.getWallets()
let registry: Contract

const baseDeposit = UNIT.div(10) // 0.1 ETH
Expand Down Expand Up @@ -703,8 +696,8 @@ describe('Optimistic recipient registry', () => {
.addRecipient(recipientAddress, metadata, { value: baseDeposit })
await expect(
registry
.connect(challenger)
.challengeRequest(recipientId, challenger.address)
.connect(requester)
.challengeRequest(recipientId, requester.address)
).to.be.revertedWith('Ownable: caller is not the owner')
})

Expand Down

0 comments on commit a78a430

Please sign in to comment.