Skip to content

Commit

Permalink
Merge pull request #652 from EYBlockchain/daveroga/fix-request-block-…
Browse files Browse the repository at this point in the history
…payment

Fix: Mark block stake as withdrawn for the block
  • Loading branch information
Westlad authored May 11, 2022
2 parents b7fbc16 + b8aa702 commit 1a33ede
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nightfall-deployer/contracts/Shield.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ contract Shield is Stateful, Structures, Config, Key_Registry, ReentrancyGuardUp
}
payment += BLOCK_STAKE;
state.addPendingWithdrawal(msg.sender, payment);
state.setBlockStakeWithdrawn(blockHash);
}

function onERC721Received(
Expand Down

0 comments on commit 1a33ede

Please sign in to comment.