js icon indicating copy to clipboard operation
js copied to clipboard

bundlrStorage no longer supported

Open LucasMoskun opened this issue 1 year ago • 1 comments

In the readme it shows this sample:

import { Metaplex, keypairIdentity, bundlrStorage } from "@metaplex-foundation/js";
import { Connection, clusterApiUrl, Keypair } from "@solana/web3.js";

const connection = new Connection(clusterApiUrl("mainnet-beta"));
const wallet = Keypair.generate();

const metaplex = Metaplex.make(connection)
    .use(keypairIdentity(wallet))
    .use(bundlrStorage());

However i have recently upgraded to

    "@metaplex-foundation/js": "^0.20.1",

and now I am receiving the error:

Module '"@metaplex-foundation/js"' has no exported member 'bundlrStorage'.

This stack exchange post says bundlrStorage is no longer supported https://solana.stackexchange.com/questions/10450/how-can-i-import-bundlrstorage-in-metaplex-library-in-js

What are we supposed to do now? At the very least readme should be updated.

I see this release message says "transition from bundlr to irys" https://github.com/metaplex-foundation/js/commit/f2d02ac5672983613ac965a94011da10d949c49f

LucasMoskun avatar Mar 11 '24 14:03 LucasMoskun

bundlrStorage has been renamed to irysStorage: https://github.com/metaplex-foundation/js/commit/3b223aba0364f94827fabb55b3566e0fae86ddda but it looks like you already noticed that 👍

zfreeze avatar Mar 15 '25 04:03 zfreeze