File tree 1 file changed +5
-4
lines changed
contracts/src/arbitration/dispute-kits
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ pragma solidity 0.8.24;
10
10
11
11
import {DisputeKitClassicBase, KlerosCore} from "./DisputeKitClassicBase.sol " ;
12
12
13
- interface IERC20OrERC721 {
13
+ interface IBalanceHolder {
14
14
/// @dev Returns the number of tokens in `owner` account.
15
+ /// @dev Compatible with ERC-20 and ERC-721.
15
16
/// @param owner The address of the owner.
16
17
/// @return balance The number of tokens in `owner` account.
17
18
function balanceOf (address owner ) external view returns (uint256 balance );
18
19
}
19
20
20
- interface IERC1155 {
21
+ interface IBalanceHolderERC1155 {
21
22
/// @dev Returns the balance of an ERC-1155 token.
22
23
/// @param account The address of the token holder
23
24
/// @param id ID of the token
@@ -109,9 +110,9 @@ contract DisputeKitGated is DisputeKitClassicBase {
109
110
if (! super ._postDrawCheck (_round, _coreDisputeID, _juror)) return false ;
110
111
111
112
if (isERC1155) {
112
- return IERC1155 (tokenGate).balanceOf (_juror, tokenId) > 0 ;
113
+ return IBalanceHolderERC1155 (tokenGate).balanceOf (_juror, tokenId) > 0 ;
113
114
} else {
114
- return IERC20OrERC721 (tokenGate).balanceOf (_juror) > 0 ;
115
+ return IBalanceHolder (tokenGate).balanceOf (_juror) > 0 ;
115
116
}
116
117
}
117
118
}
You can’t perform that action at this time.
0 commit comments