Skip to content

Commit

Permalink
update errors after fixing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Jun 4, 2024
1 parent 803695f commit bcb38c9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {DiamondProxy} from "contracts/state-transition/chain-deps/DiamondProxy.s
import {InitializeData} from "contracts/state-transition/chain-interfaces/IDiamondInit.sol";
import {IVerifier} from "contracts/state-transition/chain-interfaces/IVerifier.sol";
import {MAX_GAS_PER_TRANSACTION} from "contracts/common/Config.sol";
import {MalformedCalldata} from "contracts/common/L1ContractErrors.sol";
import {MalformedCalldata, ZeroAddress, TooMuchGas} from "contracts/common/L1ContractErrors.sol";

contract InitializeTest is DiamondInitTest {
function test_revertWhen_verifierIsZeroAddress() public {
Expand All @@ -24,7 +24,7 @@ contract InitializeTest is DiamondInitTest {
initCalldata: abi.encodeWithSelector(DiamondInit.initialize.selector, initializeData)
});

vm.expectRevert(MalformedCalldata.selector);
vm.expectRevert(ZeroAddress.selector);
new DiamondProxy(block.chainid, diamondCutData);
}

Expand All @@ -38,7 +38,7 @@ contract InitializeTest is DiamondInitTest {
initCalldata: abi.encodeWithSelector(DiamondInit.initialize.selector, initializeData)
});

vm.expectRevert(MalformedCalldata.selector);
vm.expectRevert(ZeroAddress.selector);
new DiamondProxy(block.chainid, diamondCutData);
}

Expand All @@ -52,7 +52,7 @@ contract InitializeTest is DiamondInitTest {
initCalldata: abi.encodeWithSelector(DiamondInit.initialize.selector, initializeData)
});

vm.expectRevert(MalformedCalldata.selector);
vm.expectRevert(ZeroAddress.selector);
new DiamondProxy(block.chainid, diamondCutData);
}

Expand All @@ -66,7 +66,7 @@ contract InitializeTest is DiamondInitTest {
initCalldata: abi.encodeWithSelector(DiamondInit.initialize.selector, initializeData)
});

vm.expectRevert(MalformedCalldata.selector);
vm.expectRevert(TooMuchGas.selector);
new DiamondProxy(block.chainid, diamondCutData);
}

Expand Down

0 comments on commit bcb38c9

Please sign in to comment.