Skip to content

Commit 41879c2

Browse files
use irys gateway instead of arweave.net for bundlr upload method (#490)
use irys gateway
1 parent 4ab5404 commit 41879c2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/upload/methods/bundlr.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ impl BundlrMethod {
205205
.ok_or_else(|| anyhow!("Failed context type to get extension"))?;
206206

207207
let link = match asset_info.data_type {
208-
DataType::Image | DataType::Animation => format!("https://arweave.net/{id}?ext={ext}"),
209-
DataType::Metadata => format!("https://arweave.net/{id}"),
208+
DataType::Image | DataType::Animation => {
209+
format!("https://gateway.irys.xyz/{id}?ext={ext}")
210+
}
211+
DataType::Metadata => format!("https://gateway.irys.xyz/{id}"),
210212
};
211213

212214
Ok((asset_info.asset_id, link))

0 commit comments

Comments
 (0)