Closed mikemaccana closed 1 year ago
Closing this. New Metaplex upgraded SPL, SPL needed a new version of the local validator installed. See https://solana.stackexchange.com/questions/4933/solana-spl-token-createmint-is-broken-with-custom-program-error-0xc-invali/5806#5806 for the solution.
The following code works perfectly on metaplex 0.15.0:
(original code also has
.run()
which I understand is no longer necessary and have removed)However I'd like to move to a newer and better supported metaplex release.
I have downloaded the latest metaplex JS 0.18.0 and ran it on my local validator - can I confirm I need to do this? I imagine the on-chain app needs to be upgraded when the JS package does.
In Metaplex JS 0.18.0 the code gives the following output:
By the way, it's quite possible I've missed something else I need to do after a Metaplex upgrade - I can see https://github.com/metaplex-foundation/js/releases and the README but things like upgrading the metaplex program above I'm just guessing at. Happy to send PRs if the docs just need to be written.