Skip to content

Commit

Permalink
fix all ut (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-sjtu authored Jan 5, 2024
1 parent 66eda16 commit 4baf7e3
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 221 deletions.
19 changes: 19 additions & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,25 @@ impl Index {
WRITE_TRANSACTION_STARTING_BLOCK_COUNT_TO_TIMESTAMP,
);

insert_table_info(&mut tables, &wtx, total_bytes, ORD_TX_TO_OPERATIONS);
insert_table_info(
&mut tables,
&wtx,
total_bytes,
COLLECTIONS_KEY_TO_INSCRIPTION_ID,
);
insert_table_info(
&mut tables,
&wtx,
total_bytes,
COLLECTIONS_INSCRIPTION_ID_TO_KINDS,
);
insert_table_info(&mut tables, &wtx, total_bytes, BRC20_BALANCES);
insert_table_info(&mut tables, &wtx, total_bytes, BRC20_TOKEN);
insert_table_info(&mut tables, &wtx, total_bytes, BRC20_EVENTS);
insert_table_info(&mut tables, &wtx, total_bytes, BRC20_TRANSFERABLELOG);
insert_table_info(&mut tables, &wtx, total_bytes, BRC20_INSCRIBE_TRANSFER);

for table in wtx.list_tables()? {
assert!(tables.contains_key(table.name()));
}
Expand Down
Loading

0 comments on commit 4baf7e3

Please sign in to comment.