From bfc65c34f04fc6acb84ea677f52a3d9d6d059dca Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 3 Nov 2023 22:05:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Update=20arweave=20tag?= =?UTF-8?q?=20and=20bundlr=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/arweave/v2.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/arweave/v2.ts b/utils/arweave/v2.ts index 98ee5ab8..c469081b 100644 --- a/utils/arweave/v2.ts +++ b/utils/arweave/v2.ts @@ -118,8 +118,8 @@ async function getBundler({ const p = await getProvider({ fileSize, ipfsHash, txHash }) const bundlr = new WebBundlr( IS_TESTNET - ? 'https://devnet.bundlr.network' - : 'https://node1.bundlr.network', + ? 'https://devnet.irys.xyz' + : 'https://node1.irys.xyz', 'matic', p, ) @@ -152,6 +152,9 @@ export async function uploadSingleFileToBundlr( ) { const bundler = await getBundler({ fileSize, ipfsHash, txHash }) const tags = [ + { name: 'App-Name', value: 'app.like.co' }, + { name: 'App-Version', value: '2.0' }, + { name: 'User-Agent', value: 'app.like.co' }, { name: 'IPFS-Add', value: ipfsHash }, { name: 'standard', value: 'v0.1'}, ];