From edfcbdf4258d6595d5b2e7960e09189b332b6806 Mon Sep 17 00:00:00 2001 From: MarkSackerberg <93528482+MarkSackerberg@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:48:11 +0200 Subject: [PATCH] use irys gateway --- src/upload/methods/bundlr.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/upload/methods/bundlr.rs b/src/upload/methods/bundlr.rs index 4081c9d8..44a7d27c 100644 --- a/src/upload/methods/bundlr.rs +++ b/src/upload/methods/bundlr.rs @@ -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))