Skip to content

Commit

Permalink
Update validation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Feb 3, 2025
1 parent d8e32e3 commit 5c68450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/core/protocol/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ ValidationResult validate_call_funds(const Transaction& txn, const EVM& evm, con
: txn.max_priority_fee_per_gas};

const auto required_funds = compute_call_cost(txn, effective_gas_price, evm);
const intx::uint256 value = (bailout) ? 0 : txn.value;
const intx::uint256 value = bailout ? 0 : txn.value;

if (owned_funds < required_funds + value) {
return ValidationResult::kInsufficientFunds;
Expand Down

0 comments on commit 5c68450

Please sign in to comment.