File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 ZeroReceiptImplementation,
1212 ZeroVaultImplementation,
1313 ZeroBeaconOwner,
14+ ZeroInitialAdmin,
1415 InitializeNonZeroReceipt,
1516 InitializeReceiptFailed,
1617 InitializeVaultFailed
@@ -35,6 +36,9 @@ contract OffchainAssetReceiptVaultBeaconSetDeployer {
3536 if (address (config.initialOffchainAssetReceiptVaultImplementation) == address (0 )) {
3637 revert ZeroVaultImplementation ();
3738 }
39+ if (config.initialOwner == address (0 )) {
40+ revert ZeroBeaconOwner ();
41+ }
3842
3943 I_RECEIPT_BEACON = new UpgradeableBeacon (address (config.initialReceiptImplementation), config.initialOwner);
4044 I_OFFCHAIN_ASSET_RECEIPT_VAULT_BEACON =
@@ -49,7 +53,7 @@ contract OffchainAssetReceiptVaultBeaconSetDeployer {
4953 revert InitializeNonZeroReceipt (config.receiptVaultConfig.receipt);
5054 }
5155
52- if (config.initialAdmin == address (0 )) revert ZeroBeaconOwner ();
56+ if (config.initialAdmin == address (0 )) revert ZeroInitialAdmin ();
5357
5458 Receipt receipt = Receipt (address (new BeaconProxy (address (I_RECEIPT_BEACON), "" )));
5559 OffchainAssetReceiptVault offchainAssetReceiptVault = OffchainAssetReceiptVault (
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ error ZeroVaultImplementation();
1212/// Thrown when the beacon owner is set to the zero address.
1313error ZeroBeaconOwner ();
1414
15+ /// Thrown when the initial admin is the zero address.
16+ error ZeroInitialAdmin ();
17+
1518/// Thrown when attempting to initialize with a non-zero receipt address.
1619/// @param receipt The receipt address that is not zero in the initialization
1720/// config.
You can’t perform that action at this time.
0 commit comments