File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import {IBaseSlasher} from "../../../src/interfaces/slasher/IBaseSlasher.sol";
4141
4242import {IVaultStorage} from "../../../src/interfaces/vault/v1.1/IVaultStorage.sol " ;
4343import {Math} from "@openzeppelin/contracts/utils/math/Math.sol " ;
44+ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol " ;
4445
4546import {VaultHints} from "../../../src/contracts/hints/VaultHints.sol " ;
4647import {Subnetwork} from "../../../src/contracts/libraries/Subnetwork.sol " ;
@@ -3806,8 +3807,8 @@ contract VaultTokenizedTest is Test {
38063807 function test_NotFactoryCheck () public {
38073808 vault = _getVault (7 days);
38083809
3809- vm.expectRevert ();
3810- vault._VaultTokenized_init (new bytes ( 0 ));
3810+ vm.expectRevert (Initializable.NotInitializing. selector );
3811+ vault._VaultTokenized_init (abi.encode ( "" , "" ));
38113812 }
38123813
38133814 // struct GasStruct {
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ import {IBaseSlasher} from "../../../src/interfaces/slasher/IBaseSlasher.sol";
4444
4545import {IVaultVotes} from "../../../src/interfaces/vault/v1.1/IVaultVotes.sol " ;
4646import {Math} from "@openzeppelin/contracts/utils/math/Math.sol " ;
47+ import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol " ;
4748
4849import {VaultHints} from "../../../src/contracts/hints/VaultHints.sol " ;
4950import {Subnetwork} from "../../../src/contracts/libraries/Subnetwork.sol " ;
@@ -3989,10 +3990,10 @@ contract VaultVotesTest is Test {
39893990 function test_NotFactoryCheck () public {
39903991 vault = _getVault (7 days);
39913992
3992- vm.expectRevert ();
3993- vault._VaultTokenized_init (new bytes ( 0 ));
3993+ vm.expectRevert (Initializable.NotInitializing. selector );
3994+ vault._VaultTokenized_init (abi.encode ( "" , "" ));
39943995
3995- vm.expectRevert ();
3996+ vm.expectRevert (Initializable.NotInitializing. selector );
39963997 vault._VaultVotes_init (new bytes (0 ));
39973998 }
39983999
You can’t perform that action at this time.
0 commit comments