eth: nft bridge impl initialize

This commit is contained in:
Evan Gray 2022-01-07 16:06:07 +00:00 committed by Evan Gray
parent 26b848d375
commit 7ecce0d302
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,10 @@ contract NFTBridgeImplementation is NFTBridge {
return tokenImplementation();
}
function initialize() initializer public virtual {
// this function needs to be exposed for an upgrade to pass
}
modifier initializer() {
address impl = ERC1967Upgrade._getImplementation();

View File

@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "../NFTBridgeImplementation.sol";
contract MockNFTBridgeImplementation is NFTBridgeImplementation {
function initialize() initializer public {
function initialize() initializer public override {
// this function needs to be exposed for an upgrade to pass
}