Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mint from CMv2 #14

Open
FarinM opened this issue Apr 24, 2022 · 11 comments
Open

Mint from CMv2 #14

FarinM opened this issue Apr 24, 2022 · 11 comments

Comments

@FarinM
Copy link

FarinM commented Apr 24, 2022

Hey, after following the boilerplate code for minting from a candy machine, I get this error

panic: (*jsonrpc.RPCError)(0xc00029c210)({
Code: (int) -32002,
Message: (string) (len=89) "Transaction simulation failed: Error processing Instruction 4: custom program error: 0xa7",
Data: (map[string]interface {}) (len=4) {
(string) (len=8) "accounts": (interface {}) ,
(string) (len=3) "err": (map[string]interface {}) (len=1) {
(string) (len=16) "InstructionError": ([]interface {}) (len=2 cap=2) {
(json.Number) (len=1) "4",
(map[string]interface {}) (len=1) {
(string) (len=6) "Custom": (json.Number) (len=3) "167"
}
}
},
(string) (len=4) "logs": ([]interface {}) (len=25 cap=32) {
(string) (len=51) "Program 11111111111111111111111111111111 invoke [1]",
(string) (len=48) "Program 11111111111111111111111111111111 success",
(string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
(string) (len=41) "Program log: Instruction: InitializeMint2",
(string) (len=89) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2008 of 200000 compute units",
(string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
(string) (len=63) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
(string) (len=19) "Program log: Create",
(string) (len=51) "Program 11111111111111111111111111111111 invoke [2]",
(string) (len=48) "Program 11111111111111111111111111111111 success",
(string) (len=52) "Program log: Initialize the associated token account",
(string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
(string) (len=44) "Program log: Instruction: InitializeAccount3",
(string) (len=89) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2629 of 184961 compute units",
(string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
(string) (len=91) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 18291 of 200000 compute units",
(string) (len=60) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
(string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
(string) (len=32) "Program log: Instruction: MintTo",
(string) (len=89) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2611 of 200000 compute units",
(string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
(string) (len=62) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]",
(string) (len=39) "Program log: Custom program error: 0xa7",
(string) (len=89) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ consumed 5346 of 200000 compute units",
(string) (len=86) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ failed: custom program error: 0xa7"
},
(string) (len=13) "unitsConsumed": (json.Number) (len=5) "22910"
}
})

@FarinM
Copy link
Author

FarinM commented Apr 25, 2022

^ Got that error sorted by rewriting some stuff, only issue atm is that

nftcandymachinev2.NewMintNftInstructionBuilder()

Does not seem to work (the tx doesn't hit solana). When trying without it hits

@josephfernandez
Copy link

^ Got that error sorted by rewriting some stuff, only issue atm is that

nftcandymachinev2.NewMintNftInstructionBuilder()

Does not seem to work (the tx doesn't hit solana). When trying without it hits

Also hitting this error - any progress on this FarinM?

@desperatee
Copy link

I'm having issues with CM's that had a whitelist phase configured, can't seem to add remaining accounts to the transaction in the builder.

@FarinM
Copy link
Author

FarinM commented Apr 26, 2022

^ Got that error sorted by rewriting some stuff, only issue atm is that

nftcandymachinev2.NewMintNftInstructionBuilder()

Does not seem to work (the tx doesn't hit solana). When trying without it hits

Also hitting this error - any progress on this FarinM?

Nope, waiting for the authors response

@gagliardetto
Copy link
Owner

hey @FarinM

Does not seem to work (the tx doesn't hit solana). When trying without it hits

What do you mean?

@FarinM
Copy link
Author

FarinM commented Apr 26, 2022

hey @FarinM

Does not seem to work (the tx doesn't hit solana). When trying without it hits

What do you mean?

Basically the transaction doesn't make it to the network. It just fails and never reaches when using the module.

@gagliardetto
Copy link
Owner

Basically the transaction doesn't make it to the network. It just fails and never reaches when using the module.

What's the error? Is it the custom program error: 0xa7?

@FarinM
Copy link
Author

FarinM commented Apr 26, 2022

Basically the transaction doesn't make it to the network. It just fails and never reaches when using the module.

What's the error? Is it the custom program error: 0xa7?

There is no error, that was from earlier which I got sorted. The transaction just never reaches the solana network

@FarinM
Copy link
Author

FarinM commented Apr 27, 2022

hey @gagliardetto!

To provide some more insight the "nftcandymachinev2.NewMintNftInstructionBuilder()" doesn't properly create an instruction. Therefore dropping the tx and not having it reach the network. When trying to interact without it everything works fine, just the second you start using everything just drops and never reaches

Thanks

@FarinM
Copy link
Author

FarinM commented Apr 30, 2022

Any updates? @gagliardetto

@kalashnikovn
Copy link

Hello, i. have this problem, please help me

panic: (*jsonrpc.RPCError)(0x140003ad590)({
 Code: (int) -32002,
 Message: (string) (len=89) "Transaction simulation failed: Error processing Instruction 4: custom program error: 0xa7",
 Data: (map[string]interface {}) (len=4) {
  (string) (len=8) "accounts": (interface {}) <nil>,
  (string) (len=3) "err": (map[string]interface {}) (len=1) {
   (string) (len=16) "InstructionError": ([]interface {}) (len=2 cap=2) {
    (json.Number) (len=1) "4",
    (map[string]interface {}) (len=1) {
     (string) (len=6) "Custom": (json.Number) (len=3) "167"
    }
   }
  },
  (string) (len=4) "logs": ([]interface {}) (len=25 cap=32) {
   (string) (len=51) "Program 11111111111111111111111111111111 invoke [1]",
   (string) (len=48) "Program 11111111111111111111111111111111 success",
   (string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
   (string) (len=41) "Program log: Instruction: InitializeMint2",
   (string) (len=90) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2250 of 1400000 compute units",
   (string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
   (string) (len=63) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]",
   (string) (len=19) "Program log: Create",
   (string) (len=51) "Program 11111111111111111111111111111111 invoke [2]",
   (string) (len=48) "Program 11111111111111111111111111111111 success",
   (string) (len=52) "Program log: Initialize the associated token account",
   (string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
   (string) (len=44) "Program log: Instruction: InitializeAccount3",
   (string) (len=90) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2958 of 1385556 compute units",
   (string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
   (string) (len=92) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 15775 of 1397750 compute units",
   (string) (len=60) "Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL success",
   (string) (len=62) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]",
   (string) (len=32) "Program log: Instruction: MintTo",
   (string) (len=90) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3022 of 1381975 compute units",
   (string) (len=59) "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success",
   (string) (len=62) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]",
   (string) (len=39) "Program log: Custom program error: 0xa7",
   (string) (len=90) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ consumed 5349 of 1378953 compute units",
   (string) (len=86) "Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ failed: custom program error: 0xa7"
  },
  (string) (len=13) "unitsConsumed": (json.Number) (len=5) "21047"
 }
})


goroutine 1 [running]:

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

No branches or pull requests

5 participants