Skip to content

Commit 9ff2c39

Browse files
committed
fixup! feat: make master vault beacon upgradable
1 parent 4aad0dd commit 9ff2c39

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contracts/tokenbridge/libraries/vault/MasterVault.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ contract MasterVault is Initializable, ERC4626Upgradeable, OwnableUpgradeable {
5555
event PerformanceFeeToggled(bool enabled);
5656
event BeneficiaryUpdated(address indexed oldBeneficiary, address indexed newBeneficiary);
5757

58-
function vaultInit(IERC20 _asset, string memory _name, string memory _symbol, address _owner) external initializer {
58+
function initialize(IERC20 _asset, string memory _name, string memory _symbol, address _owner) external initializer {
5959
if (address(_asset) == address(0)) revert InvalidAsset();
6060
if (_owner == address(0)) revert InvalidOwner();
6161

contracts/tokenbridge/libraries/vault/MasterVaultFactory.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ contract MasterVaultFactory is IMasterVaultFactory, OwnableUpgradeable {
4444
string memory name = string(abi.encodePacked("Master ", tokenMetadata.name()));
4545
string memory symbol = string(abi.encodePacked("m", tokenMetadata.symbol()));
4646

47-
MasterVault(vault).vaultInit(IERC20(token), name, symbol, address(this));
47+
MasterVault(vault).initialize(IERC20(token), name, symbol, address(this));
4848

4949
emit VaultDeployed(token, vault);
5050
}

test-foundry/libraries/vault/MasterVault.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ contract MasterVaultTest is Test {
3434
address proxyAddress = beaconProxyFactory.createProxy(salt);
3535
vault = MasterVault(proxyAddress);
3636

37-
vault.vaultInit(IERC20(address(token)), name, symbol, address(this));
37+
vault.initialize(IERC20(address(token)), name, symbol, address(this));
3838
}
3939

4040
function test_initialize() public {

0 commit comments

Comments
 (0)