Skip to content

Commit

Permalink
use irys gateway instead of arweave.net for bundlr upload method (#490)
Browse files Browse the repository at this point in the history
use irys gateway
  • Loading branch information
MarkSackerberg authored Sep 26, 2024
1 parent 4ab5404 commit 41879c2
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 41879c2

Please sign in to comment.