xnft-program-library icon indicating copy to clipboard operation
xnft-program-library copied to clipboard

Error in metaplex gemMetadata

Open valpaq opened this issue 2 years ago • 0 comments

Hey, here's how you have it in packages/deadgods/src/Gods/GodDetail.tsx

const [gemMetadata] = await PublicKey.findProgramAddress(
  [
    Buffer.from("metadata"),
    new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s").toBuffer(),
    gemMint.toBuffer(),
  ],
  PID_GEM_BANK
);

And how it should be

const [gemMetadata] = await PublicKey.findProgramAddress(
  [
    Buffer.from("metadata"),
    new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s").toBuffer(),
    gemMint.toBuffer(),
  ],
  new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s") /// it's right
);

valpaq avatar Aug 17 '22 11:08 valpaq