Skip to content

Commit

Permalink
Modify the variable definition in the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
billxu committed Aug 21, 2024
1 parent 6af98df commit c1d29c5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2229,13 +2229,12 @@ contract FaultDisputeGameN_Test is FaultDisputeGame_Init {
vm.expectRevert(ClaimAlreadyExists.selector);
gameProxy.attackV2{ value: bond }(disputed, 3, Claim.wrap(LibDA.getClaimsHash(LibDA.DA_TYPE_CALLDATA, 3, claims)), 0);

// This variable is not used
LibDA.DAItem memory localDataItem = LibDA.DAItem({
LibDA.DAItem memory dummyDataItem = LibDA.DAItem({
daType: LibDA.DA_TYPE_CALLDATA,
dataHash: '00000000000000000000000000000000',
dataHash: _dummyClaim().raw(),
proof: hex""
});
gameProxy.addLocalData(LocalPreimageKey.DISPUTED_L2_BLOCK_NUMBER, 4, 2, localDataItem);
gameProxy.addLocalData(LocalPreimageKey.DISPUTED_L2_BLOCK_NUMBER, 4, 2, dummyDataItem);

LibDA.DAItem memory preStateItem = LibDA.DAItem({
daType: LibDA.DA_TYPE_CALLDATA,
Expand Down

0 comments on commit c1d29c5

Please sign in to comment.