Skip to content

Commit

Permalink
[KGA-64] dev: remove dead code in exec_create
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Nov 15, 2024
1 parent 0fbea3a commit 64f522f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cairo_zero/kakarot/instructions/system_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,9 @@ namespace SystemOperations {
State.update_account(target_account);

let transfer = model.Transfer(evm.message.address, target_account.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.
let _success = State.add_transfer(transfer);

Check warning on line 195 in cairo_zero/kakarot/instructions/system_operations.cairo

View check run for this annotation

Codecov / codecov/patch

cairo_zero/kakarot/instructions/system_operations.cairo#L195

Added line #L195 was not covered by tests

return child_evm;
}
Expand Down

0 comments on commit 64f522f

Please sign in to comment.