Fix get count tokens in tests
@@ -24,7 +24,7 @@ use zksync_crypto::params::MIN_NFT_TOKEN_ID;
#[db_test]
async fn tokens_storage(mut storage: StorageProcessor<'_>) -> QueryResult<()> {
// There should be only Ethereum main token by default.
- assert_eq!(storage.tokens_schema().get_last_token_id().await?.0, 0);
+ assert_eq!(storage.tokens_schema().get_count().await?.0, 0);
let tokens = TokensSchema(&mut storage)
.load_tokens()
.await
@@ -76,7 +76,7 @@ async fn tokens_storage(mut storage: StorageProcessor<'_>) -> QueryResult<()> {
.await
.expect("Store tokens query failed");
// The count is updated.
- assert_eq!(storage.tokens_schema().get_last_token_id().await?.0, 2);
+ assert_eq!(storage.tokens_schema().get_count().await?.0, 2);
// Load tokens again.
let tokens = TokensSchema(&mut storage)
