Skip to content

Commit

Permalink
fix small issue with returning the balance
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Jun 20, 2024
1 parent fa4b413 commit 1a449dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ library LibProposing {

_tko.transferFrom(msg.sender, address(this), _config.livenessBond);

// Refund Ether
if (address(this).balance != 0) {
msg.sender.sendEtherAndVerify(address(this).balance);
// Bribe the block builder
if (msg.value != 0) {
address(block.coinbase).sendEtherAndVerify(msg.value);
}

deposits_ = new TaikoData.EthDeposit[](0);
Expand Down

0 comments on commit 1a449dd

Please sign in to comment.