Skip to content

Commit

Permalink
dev: remove dead code in exec_create
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Dec 6, 2024
1 parent 5b18a0e commit 58e84b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cairo/src/instructions/system_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,9 @@ namespace SystemOperations {

let transfer = model.Transfer(evm.message.address, target_address, [value]);
let success = State.add_transfer(transfer);
if (success == 0) {
Stack.push_uint128(0);
return child_evm;
}

// @dev: This transfer cannot fail, as the balance was checked before.
State.add_transfer(transfer);

Check warning on line 185 in cairo/src/instructions/system_operations.cairo

View check run for this annotation

Codecov / codecov/patch

cairo/src/instructions/system_operations.cairo#L185

Added line #L185 was not covered by tests

return child_evm;
}
Expand Down

0 comments on commit 58e84b5

Please sign in to comment.