Skip to content

Commit

Permalink
Remove SealEpochRewards transfer status check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Nov 4, 2024
1 parent ddb6e6b commit 29f5dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,8 @@ contract SFC is Initializable, Ownable, Version {
_mintNativeToken(feeShare);
(bool success, ) = treasuryAddress.call{value: feeShare, gas: 1000000}("");
if (!success) {

Check warning on line 935 in contracts/sfc/SFC.sol

View workflow job for this annotation

GitHub Actions / Lint sources (20.x)

Code contains empty blocks
revert TransferFailed();
// ignore treasure transfer failure
// this is prevention against treasuryAddress being able to break epoch sealing
}
}
}
Expand Down

0 comments on commit 29f5dce

Please sign in to comment.