Skip to content

Commit

Permalink
chg: Make set tunnel functions virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Jan 27, 2022
1 parent 99cbdc8 commit baed24d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/tunnel/FxBaseChildTunnel.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract contract FxBaseChildTunnel is IFxMessageProcessor {
}

// set fxRootTunnel if not set already
function setFxRootTunnel(address _fxRootTunnel) external {
function setFxRootTunnel(address _fxRootTunnel) external virtual {
require(fxRootTunnel == address(0x0), "FxBaseChildTunnel: ROOT_TUNNEL_ALREADY_SET");
fxRootTunnel = _fxRootTunnel;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/tunnel/FxBaseRootTunnel.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract contract FxBaseRootTunnel {
}

// set fxChildTunnel if not set already
function setFxChildTunnel(address _fxChildTunnel) public {
function setFxChildTunnel(address _fxChildTunnel) public virtual {
require(fxChildTunnel == address(0x0), "FxBaseRootTunnel: CHILD_TUNNEL_ALREADY_SET");
fxChildTunnel = _fxChildTunnel;
}
Expand Down

0 comments on commit baed24d

Please sign in to comment.