Skip to content

Commit baed24d

Browse files
committed
chg: Make set tunnel functions virtual
1 parent 99cbdc8 commit baed24d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/tunnel/FxBaseChildTunnel.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract contract FxBaseChildTunnel is IFxMessageProcessor {
3434
}
3535

3636
// set fxRootTunnel if not set already
37-
function setFxRootTunnel(address _fxRootTunnel) external {
37+
function setFxRootTunnel(address _fxRootTunnel) external virtual {
3838
require(fxRootTunnel == address(0x0), "FxBaseChildTunnel: ROOT_TUNNEL_ALREADY_SET");
3939
fxRootTunnel = _fxRootTunnel;
4040
}

contracts/tunnel/FxBaseRootTunnel.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ abstract contract FxBaseRootTunnel {
5454
}
5555

5656
// set fxChildTunnel if not set already
57-
function setFxChildTunnel(address _fxChildTunnel) public {
57+
function setFxChildTunnel(address _fxChildTunnel) public virtual {
5858
require(fxChildTunnel == address(0x0), "FxBaseRootTunnel: CHILD_TUNNEL_ALREADY_SET");
5959
fxChildTunnel = _fxChildTunnel;
6060
}

0 commit comments

Comments
 (0)