File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
contracts/src/arbitration/dispute-kits Expand file tree Collapse file tree 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;
1010
1111import {DisputeKitClassicBase, KlerosCore} from "./DisputeKitClassicBase.sol " ;
1212
13- interface IERC20OrERC721 {
13+ interface IBalanceHolder {
1414 /// @dev Returns the number of tokens in `owner` account.
15+ /// @dev Compatible with ERC-20 and ERC-721.
1516 /// @param owner The address of the owner.
1617 /// @return balance The number of tokens in `owner` account.
1718 function balanceOf (address owner ) external view returns (uint256 balance );
1819}
1920
20- interface IERC1155 {
21+ interface IBalanceHolderERC1155 {
2122 /// @dev Returns the balance of an ERC-1155 token.
2223 /// @param account The address of the token holder
2324 /// @param id ID of the token
@@ -109,9 +110,9 @@ contract DisputeKitGated is DisputeKitClassicBase {
109110 if (! super ._postDrawCheck (_round, _coreDisputeID, _juror)) return false ;
110111
111112 if (isERC1155) {
112- return IERC1155 (tokenGate).balanceOf (_juror, tokenId) > 0 ;
113+ return IBalanceHolderERC1155 (tokenGate).balanceOf (_juror, tokenId) > 0 ;
113114 } else {
114- return IERC20OrERC721 (tokenGate).balanceOf (_juror) > 0 ;
115+ return IBalanceHolder (tokenGate).balanceOf (_juror) > 0 ;
115116 }
116117 }
117118}
You can’t perform that action at this time.
0 commit comments