From 2692613b9a926e6846f55b420a7225c0d1f80945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 27 Apr 2023 11:04:19 +0200 Subject: [PATCH] Fix variable sort order in contract New variables have to be added at the end, because otherwise the existing slots would be mixed up. Co-authored-by: Michael Bumann --- contracts/Contributor.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/Contributor.sol b/contracts/Contributor.sol index c752e00..1877700 100644 --- a/contracts/Contributor.sol +++ b/contracts/Contributor.sol @@ -13,7 +13,6 @@ interface IContributionBalance { contract Contributor is Initializable { address public deployer; - address public profileManager; IContributionBalance public contributionContract; IToken public tokenContract; @@ -30,6 +29,8 @@ contract Contributor is Initializable { mapping (uint32 => Contributor) public contributors; uint32 public contributorsCount; + address public profileManager; + event ContributorProfileUpdated(uint32 id, bytes32 oldHashDigest, bytes32 newHashDigest); // what should be logged event ContributorAccountUpdated(uint32 id, address oldAccount, address newAccount); event ContributorAdded(uint32 id, address account); -- 2.25.1