Skip to content

Commit

Permalink
use irys gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSackerberg committed Sep 26, 2024
1 parent 4ab5404 commit edfcbdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/upload/methods/bundlr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,10 @@ impl BundlrMethod {
.ok_or_else(|| anyhow!("Failed context type to get extension"))?;

let link = match asset_info.data_type {
DataType::Image | DataType::Animation => format!("https://arweave.net/{id}?ext={ext}"),
DataType::Metadata => format!("https://arweave.net/{id}"),
DataType::Image | DataType::Animation => {
format!("https://gateway.irys.xyz/{id}?ext={ext}")
}
DataType::Metadata => format!("https://gateway.irys.xyz/{id}"),
};

Ok((asset_info.asset_id, link))
Expand Down

0 comments on commit edfcbdf

Please sign in to comment.