Skip to content

Commit

Permalink
fix: rollback increment_nonce fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajbouw committed Feb 1, 2023
1 parent df11f14 commit 772794b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ pub fn submit<I: IO + Copy, E: Env, P: PromiseHandler>(
let prepaid_amount = match engine.charge_gas(&sender, &transaction, GasToken::Base) {
Ok(gas_result) => gas_result,
Err(GasPaymentError::OutOfFund) => {
increment_nonce(&mut io, &sender);
let result = SubmitResult::new(TransactionStatus::OutOfFund, 0, vec![]);
return Ok(result);
}
Expand Down

0 comments on commit 772794b

Please sign in to comment.