From 14cdda59b5991c73e8a432f80c4e23ca72b3c970 Mon Sep 17 00:00:00 2001 From: "marko.b" Date: Sun, 15 Oct 2023 11:39:41 +0200 Subject: [PATCH 1/2] bring back event --- src/Redistribution.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Redistribution.sol b/src/Redistribution.sol index 326fb8c4..008c09de 100644 --- a/src/Redistribution.sol +++ b/src/Redistribution.sol @@ -467,9 +467,9 @@ contract Redistribution is AccessControl, Pausable { entryProofLast.proofSegments[0] ); - emit WinnerSelected(winnerSelected); - PostageContract.withdraw(winnerSelected.owner); + emit WinnerSelected(winnerSelected); + emit ChunkCount(PostageContract.validChunkCount()); } function winnerSelection() internal { From 229e886f29da37d94dd6fe1377fa52e9dfa4b00f Mon Sep 17 00:00:00 2001 From: "marko.b" Date: Sun, 15 Oct 2023 16:48:35 +0200 Subject: [PATCH 2/2] add name of var" --- src/Redistribution.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Redistribution.sol b/src/Redistribution.sol index 008c09de..93ae1af3 100644 --- a/src/Redistribution.sol +++ b/src/Redistribution.sol @@ -207,7 +207,7 @@ contract Redistribution is AccessControl, Pausable { /** * @dev Logs for inclusion proof */ - event transformedChunkAddressFromInclusionProof(uint256, bytes32 chunkAddress); + event transformedChunkAddressFromInclusionProof(uint256 indexInRC, bytes32 chunkAddress); // ----------------------------- Errors ------------------------------