2021-06-21 07:04:07 -07:00
|
|
|
// contracts/Implementation.sol
|
|
|
|
// SPDX-License-Identifier: Apache 2
|
|
|
|
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "../BridgeImplementation.sol";
|
|
|
|
|
|
|
|
contract MockBridgeImplementation is BridgeImplementation {
|
2021-10-22 05:32:10 -07:00
|
|
|
function initialize() initializer public override {
|
2021-06-21 07:04:07 -07:00
|
|
|
// this function needs to be exposed for an upgrade to pass
|
|
|
|
}
|
|
|
|
|
|
|
|
function testNewImplementationActive() external pure returns (bool) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function testUpdateWETHAddress(address WETH) external {
|
|
|
|
setWETH(WETH);
|
|
|
|
}
|
2022-09-09 10:26:41 -07:00
|
|
|
|
|
|
|
function testOverwriteEVMChainId(uint16 fakeChainId, uint256 fakeEvmChainId) external {
|
|
|
|
_state.provider.chainId = fakeChainId;
|
|
|
|
_state.evmChainId = fakeEvmChainId;
|
|
|
|
}
|
2021-06-21 07:04:07 -07:00
|
|
|
}
|