Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Feb 7, 2025
1 parent 67cc5a0 commit 5260508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ contract PreconfRouterTest is PreconfRouterTestBase {

// Prank as Carol (selected operator) and propose blocks
vm.prank(Carol);
(, ITaikoInbox.BatchMetadata memory meta) =
router.proposeBatch(abi.encode("", abi.encode(params)), "");
(, ITaikoInbox.BatchMetadata memory meta) = router.proposeBatch(abi.encode(params), "");

// Assert the proposer was set correctly in the metadata
assertEq(meta.proposer, Carol);
Expand Down Expand Up @@ -88,7 +87,7 @@ contract PreconfRouterTest is PreconfRouterTestBase {
// Prank as David (not the selected operator) and propose blocks
vm.prank(David);
vm.expectRevert(IPreconfRouter.NotTheOperator.selector);
router.proposeBatch(abi.encode("", ""), "");
router.proposeBatch("", "");
}

function test_preconfRouter_proposeBatch_proposerNotSender() external {
Expand Down Expand Up @@ -139,6 +138,6 @@ contract PreconfRouterTest is PreconfRouterTestBase {
// Prank as Carol (selected operator) and propose blocks
vm.prank(Carol);
vm.expectRevert(IPreconfRouter.ProposerIsNotTheSender.selector);
router.proposeBatch(abi.encode("", abi.encode(params)), "");
router.proposeBatch(abi.encode(params), "");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract contract PreconfRouterTestBase is Layer1Test {
vm.chainId(1);

deploy({
name: "taiko",
name: "taiko_wrapper",
impl: address(new MockTaikoInbox(address(resolver))),
data: abi.encodeCall(MockTaikoInbox.init, (address(0)))
});
Expand Down

0 comments on commit 5260508

Please sign in to comment.