diff --git a/solidity/contracts/token/extensions/HypXERC20.sol b/solidity/contracts/token/extensions/HypXERC20.sol index 9f50b4537..84ab7a879 100644 --- a/solidity/contracts/token/extensions/HypXERC20.sol +++ b/solidity/contracts/token/extensions/HypXERC20.sol @@ -8,7 +8,9 @@ contract HypXERC20 is HypERC20Collateral { constructor( address _xerc20, address _mailbox - ) HypERC20Collateral(_xerc20, _mailbox) {} + ) HypERC20Collateral(_xerc20, _mailbox) { + _disableInitializers(); + } function _transferFromSender( uint256 _amountOrId diff --git a/solidity/contracts/token/extensions/HypXERC20Lockbox.sol b/solidity/contracts/token/extensions/HypXERC20Lockbox.sol index 6c95abd3e..f2c26e784 100644 --- a/solidity/contracts/token/extensions/HypXERC20Lockbox.sol +++ b/solidity/contracts/token/extensions/HypXERC20Lockbox.sol @@ -18,6 +18,7 @@ contract HypXERC20Lockbox is HypERC20Collateral { lockbox = IXERC20Lockbox(_lockbox); xERC20 = lockbox.XERC20(); approveLockbox(); + _disableInitializers(); } /**