Skip to content

Commit

Permalink
Only try to update owner on asset when ta amount is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kespinola committed Jan 28, 2025
1 parent 675c9eb commit c004ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program_transformers/src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ pub async fn handle_token_program_account<'a, 'b>(
.exec_without_returning(db)
.await?;

if ta.mint == WSOL_PUBKEY {
if ta.mint == WSOL_PUBKEY || ta.amount != 1 {
return Ok(());
}

let txn = db.begin().await?;

let set_lock_timeout = "SET LOCAL lock_timeout = '20ms';";
let set_lock_timeout = "SET LOCAL lock_timeout = '100ms';";
let set_local_app_name =
"SET LOCAL application_name = 'das::program_transformers::token::token_account';";
let set_lock_timeout_stmt =
Expand Down

0 comments on commit c004ce4

Please sign in to comment.