Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Transaction too large (candymachine minting) #499

Open
richardfsr opened this issue Apr 19, 2023 · 0 comments
Open

Transaction too large (candymachine minting) #499

richardfsr opened this issue Apr 19, 2023 · 0 comments

Comments

@richardfsr
Copy link

richardfsr commented Apr 19, 2023

Hi,

I'm trying to mint from candy machine using both the solPayment and nftBurn guards together but I'm receiving the error Transaction too large: 1264 > 1232

Here's my candymachine guard config:

"guards": {
  "default": {},
  "groups": [
    {
      "label": "wl_1",
      "guards": {
        "startDate": {
          "date": "2023-04-19T14:00:00Z"
        },
        "endDate": {
          "date": "2023-04-19T22:00:00Z"
        },
        "nftBurn": {
          "requiredCollection": "Epq55eG3zc69NhN3VibdbSnkgAs7H2rzCcEhdFKUWkLi"
        },
        "solPayment": {
          "value": 0.19,
          "destination": "CyRxEcCLP59efWtAyCGVWJAiGrpJBN7RRccXHYUc2UUs"
        }
      }
    }
  ]
}

And here's the code that I'm using to submit the transaction:

const transactionBuilder = await metaplex
        .candyMachines()
        .builders()
        .mint({
          candyMachine,
          collectionUpdateAuthority,
          group:"wl_1",
          guards: {
            nftBurn: {
              mint: collectionMint.mintAddress,
            },
          }});
await metaplex.rpc().sendAndConfirmTransaction(transactionBuilder);

There's no way to submit the solPayment and nftBurn in separate transactions as far as I can tell?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant