Skip to content

Commit

Permalink
allow to receive more value on op stack
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbenny committed Apr 11, 2024
1 parent 23a36a3 commit b8a850f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/gateway/optimism/OptimismL1Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ contract OptimismL1Gateway is L1BaseGateway, OptimismGateway {
uint256 _value,
bytes calldata _callData
) external payable onlyMessageService onlyRemoteGateway {
require(msg.value == _value, "Invalid value");
// Blast will return more value(the stake profit) than burned on L2
require(msg.value >= _value, "Invalid value");
// Forward message to arbitrator
ARBITRATOR.receiveMessage{value: _value}(_value, _callData);
}
Expand Down

0 comments on commit b8a850f

Please sign in to comment.