wormhole/ethereum/contracts/bridge/mock/MockBridgeImplementation.sol

26 lines
708 B
Solidity

// contracts/Implementation.sol
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.0;
import "../BridgeImplementation.sol";
contract MockBridgeImplementation is BridgeImplementation {
function initialize() initializer public override {
// 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);
}
function testOverwriteEVMChainId(uint16 fakeChainId, uint256 fakeEvmChainId) external {
_state.provider.chainId = fakeChainId;
_state.evmChainId = fakeEvmChainId;
}
}