Skip to content

Commit

Permalink
refactor: WRB.ddrTag() -> WRB.channel()
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Nov 29, 2023
1 parent ddab6cf commit 565c3bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/WitnetRequestBoard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions contracts/core/defaults/WitnetRequestBoardTrustableBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down Expand Up @@ -774,7 +774,7 @@ abstract contract WitnetRequestBoardTrustableBase
returns (uint256)
{
return uint(keccak256(abi.encode(
ddrTag(),
channel(),
block.number,
msg.sender,
_queryRAD,
Expand Down

0 comments on commit 565c3bc

Please sign in to comment.