Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
INSERT has more expressions than target columns (issue #104) (#105)
Browse files Browse the repository at this point in the history
Fixes issue #104 where too many VALUES were given to the tx_bridge_pool
table.
  • Loading branch information
zenodeapp authored Feb 10, 2024
1 parent 8013b0e commit a99261d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,8 +765,7 @@ impl Database {
.push_bind(tx_bridge.transfer.sender.to_string())
.push_bind(tx_bridge.transfer.amount.to_string_native())
.push_bind(tx_bridge.gas_fee.amount.to_string_native())
.push_bind(tx_bridge.gas_fee.payer.to_string())
.push_bind(false);
.push_bind(tx_bridge.gas_fee.payer.to_string());
})
.build();
query.execute(&mut *sqlx_tx).await?;
Expand Down

0 comments on commit a99261d

Please sign in to comment.