Skip to content

Commit

Permalink
fix no token uri
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Feb 12, 2025
1 parent 738ef94 commit e176d85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/torii/sqlite/src/executor/erc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,13 @@ impl<'c, P: Provider + Sync + Send + 'static> Executor<'c, P> {
.map(|strings| strings.join(""))
.map_err(|_| anyhow::anyhow!("Failed parsing Array<Felt> to String"))?
} else {
return Err(anyhow::anyhow!("token_uri is neither ByteArray nor Array<Felt>"));
debug!(
contract_address = format!("{:#x}", register_nft_token.contract_address),
token_id = %register_nft_token.actual_token_id,
token_uri = %token_uri.iter().map(|f| format!("{:#x}", f)).collect::<Vec<String>>().join(", "),
"token_uri is neither ByteArray nor Array<Felt>"

Check warning on line 282 in crates/torii/sqlite/src/executor/erc.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/sqlite/src/executor/erc.rs#L278-L282

Added lines #L278 - L282 were not covered by tests
);
"".to_string()

Check warning on line 284 in crates/torii/sqlite/src/executor/erc.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/sqlite/src/executor/erc.rs#L284

Added line #L284 was not covered by tests
};

// ERC1155 standard (https://eips.ethereum.org/EIPS/eip-1155#metadata)
Expand Down

0 comments on commit e176d85

Please sign in to comment.