From 17b55103a26b3a3950d29c54477f0df8e3e803d7 Mon Sep 17 00:00:00 2001 From: Aleksandr Tarelkin Date: Fri, 1 Nov 2024 10:02:25 +0300 Subject: [PATCH] fix: Missing proposal type --- contracts/committees/TiebreakerSubCommittee.sol | 2 +- test/unit/committees/TiebreakerSubCommittee.t.sol | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/committees/TiebreakerSubCommittee.sol b/contracts/committees/TiebreakerSubCommittee.sol index f69be1b7..214edfa1 100644 --- a/contracts/committees/TiebreakerSubCommittee.sol +++ b/contracts/committees/TiebreakerSubCommittee.sol @@ -140,7 +140,7 @@ contract TiebreakerSubCommittee is HashConsensus, ProposalsList { returns (bytes memory data, bytes32 key, uint256 nonce) { nonce = ITiebreakerCoreCommittee(TIEBREAKER_CORE_COMMITTEE).getSealableResumeNonce(sealable); - data = abi.encode(sealable, nonce); + data = abi.encode(ProposalType.ResumeSealable, sealable, nonce); key = keccak256(data); } } diff --git a/test/unit/committees/TiebreakerSubCommittee.t.sol b/test/unit/committees/TiebreakerSubCommittee.t.sol index 774ae27c..41c1af69 100644 --- a/test/unit/committees/TiebreakerSubCommittee.t.sol +++ b/test/unit/committees/TiebreakerSubCommittee.t.sol @@ -180,7 +180,8 @@ contract TiebreakerSubCommitteeUnitTest is UnitTest { vm.prank(committeeMembers[2]); vm.expectRevert( abi.encodeWithSelector( - HashConsensus.HashIsNotScheduled.selector, keccak256(abi.encode(sealable, /*nonce */ 0)) + HashConsensus.HashIsNotScheduled.selector, + keccak256(abi.encode(ProposalType.ResumeSealable, sealable, /*nonce */ 0)) ) ); tiebreakerSubCommittee.executeSealableResume(sealable);