Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuhar committed Mar 3, 2025
1 parent 7163ee2 commit 1ba7dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/0.8.9/oracle/ValidatorsExitBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ contract ValidatorsExitBus is AccessControlEnumerable {
revert InsufficientPayment(withdrawalFee, keyIndexes.length, msg.value);
}

uint256 prevBalance = address(this).balance - msg.value;
// uint256 prevBalance = address(this).balance - msg.value;

uint256 lastDeliveredKeyIndex = requestStatus.deliveredItemsCount - 1;

Expand Down Expand Up @@ -136,7 +136,7 @@ contract ValidatorsExitBus is AccessControlEnumerable {
emit MadeRefund(msg.sender, refund);
}

assert(address(this).balance == prevBalance);
// assert(address(this).balance == prevBalance);
}

function _storeExitRequestHash(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ describe("AccountingOracle.sol:submitReportExtraData", () => {
.withArgs(extraDataChunkHashes[1], extraDataChunkHashes[0]);

const tx2 = await oracleMemberSubmitExtraData(extraDataChunks[1]);
await expect(tx2).to.emit(oracle, "ExtraDataSubmitted").withArgs(report.refSlot, , anyValue);
await expect(tx2).to.emit(oracle, "ExtraDataSubmitted").withArgs(report.refSlot, anyValue, anyValue);
});

it("pass successfully if data hash matches", async () => {
Expand Down

0 comments on commit 1ba7dc6

Please sign in to comment.