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

21 lines
518 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);
}
}