diff --git a/contracts/WitnetRequestBoard.sol b/contracts/WitnetRequestBoard.sol index 372a3c02..93da562c 100644 --- a/contracts/WitnetRequestBoard.sol +++ b/contracts/WitnetRequestBoard.sol @@ -17,6 +17,7 @@ abstract contract WitnetRequestBoard function class() virtual external view returns (string memory) { return type(WitnetRequestBoard).name; } + function channel() virtual external view returns (bytes4); function factory() virtual external view returns (WitnetRequestFactory); function registry() virtual external view returns (WitnetBytecodes); function specs() virtual external view returns (bytes4); diff --git a/contracts/core/defaults/WitnetRequestBoardTrustableBase.sol b/contracts/core/defaults/WitnetRequestBoardTrustableBase.sol index d224f2a5..073e357a 100644 --- a/contracts/core/defaults/WitnetRequestBoardTrustableBase.sol +++ b/contracts/core/defaults/WitnetRequestBoardTrustableBase.sol @@ -100,7 +100,7 @@ abstract contract WitnetRequestBoardTrustableBase ))); } - function ddrTag() virtual public view returns (bytes4) { + function channel() virtual override public view returns (bytes4) { return bytes4(keccak256(abi.encode(address(this), block.chainid))); } @@ -774,7 +774,7 @@ abstract contract WitnetRequestBoardTrustableBase returns (uint256) { return uint(keccak256(abi.encode( - ddrTag(), + channel(), block.number, msg.sender, _queryRAD,