Skip to content

Commit

Permalink
Ensure operator is set when seeding the public key list
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed Jul 8, 2024
1 parent 6f797af commit 7b785dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/ServiceNodeRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,9 @@ contract ServiceNodeRewards is Initializable, Ownable2StepUpgradeable, PausableU
"Seeded service cannot have more than 10 contributors");

// NOTE: Add node to the smart contract
uint64 allocID = serviceNodeAdd(node.pubkey);
_serviceNodes[allocID].deposit = node.deposit;
uint64 allocID = serviceNodeAdd(node.pubkey);
_serviceNodes[allocID].deposit = node.deposit;
_serviceNodes[allocID].operator = node.contributors[0].addr;

uint256 stakedAmountSum = 0;
for (uint256 contributorIndex = 0; contributorIndex < node.contributors.length; contributorIndex++) {
Expand Down

0 comments on commit 7b785dd

Please sign in to comment.