Skip to content

Commit

Permalink
forget about db commit
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jul 30, 2024
1 parent 5b36600 commit da2947b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/erc20_payment_lib/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ impl PaymentRuntime {
.await
.map_err(|e| err_custom_create!("Error updating token transfer: {}", e))?;

db_trans
.commit()
.await
.map_err(|e| err_custom_create!("Error committing transaction: {}", e))?;

self.update_deadlines(transfer_args, account);

Ok(UpdateTransferResult::SuccessTransferUpdated)
Expand Down

0 comments on commit da2947b

Please sign in to comment.