Skip to content

Commit 0b4d34a

Browse files
committed
remove unnecessary code
1 parent 4c7f090 commit 0b4d34a

File tree

1 file changed

+0
-9
lines changed
  • target_chains/ethereum/contracts/contracts/pulse

1 file changed

+0
-9
lines changed

target_chains/ethereum/contracts/contracts/pulse/Pulse.sol

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ abstract contract Pulse is IPulse, PulseState {
124124

125125
clearRequest(sequenceNumber);
126126

127-
// Check if enough gas remains for callback + events/cleanup
128-
// We need extra gas beyond callbackGasLimit for:
129-
// 1. Emitting success/failure events
130-
// 2. Error handling in catch blocks
131-
// 3. State cleanup operations
132-
if (gasleft() < (req.callbackGasLimit * 3) / 2) {
133-
revert InsufficientGas();
134-
}
135-
136127
try
137128
IPulseConsumer(req.requester).pulseCallback{
138129
gas: req.callbackGasLimit

0 commit comments

Comments
 (0)