fix: sql request

This commit is contained in:
Ludo Galabru
2023-08-03 20:15:00 +02:00
parent 32d8cbcbf5
commit 6345df2652

View File

@@ -559,7 +559,7 @@ pub fn find_all_transfers_in_block(
) -> BTreeMap<String, Vec<TransferData>> {
let args: &[&dyn ToSql] = &[&block_height.to_sql().unwrap()];
let mut stmt = inscriptions_db_conn
.prepare("SELECT inscription_id, offset, outpoint_to_watch, tx_index FROM legacy_locations WHERE block_height = ? ORDER BY tx_index ASC")
.prepare("SELECT inscription_id, offset, outpoint_to_watch, tx_index FROM locations WHERE block_height = ? ORDER BY tx_index ASC")
.unwrap();
let mut results: BTreeMap<String, Vec<TransferData>> = BTreeMap::new();
let mut rows = stmt.query(args).unwrap();