gagliardetto / metaplex-go

Go clients for the Metaplex Solana programs
MIT License
42 stars 30 forks source link

Transaction simulation failed #7

Open rahulanand20 opened 2 years ago

rahulanand20 commented 2 years ago

I'm working on a project where we have a server-side metaplex rust program(https://github.com/metaplex-foundation/metaplex/tree/release/v1.1.0) and I have deployed the nft-candy-machine and token-metadata on local separately and I have got two programid's, and from the client side metaplex-go (https://github.com/gagliardetto/metaplex-go) I have put my path of keygen(https://github.com/gagliardetto/metaplex-go/blob/87b7612310478a9669dbe22f31be10c9962da4c6/examples/candy/main.go#L27) and the programid's of nft-candy-machine(https://github.com/gagliardetto/metaplex-go/blob/87b7612310478a9669dbe22f31be10c9962da4c6/examples/candy/main.go#L77) and token-metadata(https://github.com/gagliardetto/metaplex-go/blob/87b7612310478a9669dbe22f31be10c9962da4c6/examples/candy/main.go#L80) along with the WalletFromPrivateKey(https://github.com/gagliardetto/metaplex-go/blob/87b7612310478a9669dbe22f31be10c9962da4c6/examples/candy/main.go#L569) with my wallet private key but im getting an error can you help on this. I have sufficient SOL on my wallet

pfa of my config go version go1.16.7 linux/amd64 solana-cli 1.9.3 (src:8578429c; feat:1294904204) cargo 1.57.0 (b2e52d7ca 2021-10-21)

solana config get Config File: /home//.config/solana/cli/config.yml RPC URL: http://localhost:8899 WebSocket URL: ws://localhost:8900/ (computed) Keypair Path: /home//my-solana-wallet/my-keypair.json Commitment: confirmed

solana-test-validator --faucet-sol argument ignored, ledger already exists Ledger location: test-ledger Log: test-ledger/validator.log ⠈ Initializing... Identity: 9FEBqAETacHLntE9G63i1eXuTheURLfg2wYm6MyhbRbH Genesis Hash: FGjCRu8nkmW912rRTQ7enjgJZZHibfNaZFmdW6AHWiWj Version: 1.9.3 Shred Version: 29330 Gossip Address: 127.0.0.1:1024 TPU Address: 127.0.0.1:1027 JSON RPC URL: http://127.0.0.1:8899

image

Also I have tried to deploy nft-candy-machine-v2 and nft-candy-machine

rahulanand20 commented 2 years ago

Could please help with the above issue.

gagliardetto commented 2 years ago

Hi @rahulanand20

Sorry for the late response.


What's the ID of the candy machine? Is it ATn9Kcw...? What version of candy machine is that? (v1 or v2?)

rahulanand20 commented 2 years ago

Hi, @gagliardetto thanks for acknowledging.

Yes ID of the candy machine is ATn9Kcw54faxm214mnyvAk94rPMmr7sV1oSUAb6fgXT9 The version that I have mentioned is v1 nft-candy-machine and release/v1.1.0 It is precisely failing at "do mint" Pfa of the results

image image image

FYI - I have tried with v2 but it fails at an earlier point in time (at create candy machine account) Also i have tried release/v1.0.0 and release/v1.1.1 but same error persists.

gagliardetto commented 2 years ago

Two things:

rahulanand20 commented 2 years ago

Hi, @gagliardetto thanks for the reply, I have tried with the latest metaplex-go release: https://github.com/gagliardetto/metaplex-go/releases/tag/v0.1.4 and the candy-machine v2

But the error still persists

selected net: {http://127.0.0.1:8899 ws://127.0.0.1:8900} (main.configParams)(0xc0002e6060)({ UUID: (string) (len=6) "J5S1AQ", Config: (solana.Wallet)(0xc0002e2018)({ PrivateKey: (solana.PrivateKey) (len=64 cap=64) 5N1U1yvoW7niLng4wKq3d2JQLhp6qxVRM3Cibd1yFVK1qVyv8Um9aH6E81b3mBg8mpZ8iwaTqqF3kpyBRpn7KpHD }), Authority: (*solana.Wallet)(0xc0002e2030)({ PrivateKey: (solana.PrivateKey) (len=64 cap=106) 4prL2LjqVLevvuoFVHNh3UpQN3BRFSe6pxRUhZfXHzZCbmsnJsUdrHTctq4Mcyty49RxKuXpWrMk7iBxVg78fCxw }), CandyMachineUuid: (string) (len=6) "Ew8Q2K" }) create candy machine account ├─ Signatures[len=3] │ ├─ 4osBrJAB72mu8vkuMm3VY52i5QH1e15vv6DESPYqMHGjs9ERXgTsvZ5FSPqRae33wxMb3BgNEdGeJrkD5U3Hibpt │ ├─ 23yitYyFvgRTU8iDXWCgDBNTFibETHBojYNJjLuYh2Em2zkegu2iy219AazmND7foQiZrmxby3fsJhsUn1qNmap7 │ └─ 5Dy5Tx5HJ3woUseQRUMnGmLagaJmPYxBJDMcKVdwuz8CBhBNiPVsrHZ796FRzANzHBfaBhWebahvKmPdi5KyL7um ├─ Message │ ├─ RecentBlockhash: CFokKHegLcWPcfq4ivd7U84ZjdzSWKgtTRuJK3kNPUsi │ ├─ AccountKeys[len=6] │ │ ├─ 43xqaQkf8N95Af64ZqafbcQsPWdKqy5BRWxH7FFYomqX │ │ ├─ CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ │ │ ├─ F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw │ │ ├─ SysvarRent111111111111111111111111111111111 │ │ ├─ 11111111111111111111111111111111 │ │ └─ AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi │ └─ Header │ ├─ NumRequiredSignatures: 3 │ ├─ NumReadonlySignedAccounts: 0 │ └─ NumReadonlyUnsignedAccounts: 3 └─ Instructions[len=6] ├─ Program: System 11111111111111111111111111111111 │ └─ Instruction: CreateAccount │ ├─ Params │ │ ├─ Lamports: (uint64) 10000000000 │ │ ├─ Space: (uint64) 2657 │ │ └─ Owner: (solana.PublicKey) (len=32 cap=32) AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi │ └─ Accounts │ ├─ Funding: 43xqaQkf8N95Af64ZqafbcQsPWdKqy5BRWxH7FFYomqX [WRITE, SIGN] │ └─ New: CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ [WRITE, SIGN] ├─ Program: System 11111111111111111111111111111111 │ └─ Instruction: Transfer │ ├─ Params │ │ └─ Lamports: (uint64) 500000 │ └─ Accounts │ ├─ Funding: 43xqaQkf8N95Af64ZqafbcQsPWdKqy5BRWxH7FFYomqX [WRITE, SIGN] │ └─ Recipient: F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw [WRITE, SIGN] ├─ Program: NftCandyMachine AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi │ └─ Instruction: InitializeConfig │ ├─ Params[len=1] │ │ └─ Data: (nft_candy_machine.ConfigData) { │ │ Uuid: (string) (len=6) "J5S1AQ", │ │ Symbol: (string) (len=6) "SYMBOL", │ │ SellerFeeBasisPoints: (uint16) 500, │ │ Creators: ([]nft_candy_machine.Creator) (len=1 cap=1) { │ │ (nft_candy_machine.Creator) { │ │ Address: (solana.PublicKey) (len=32 cap=32) 43xqaQkf8N95Af64ZqafbcQsPWdKqy5BRWxH7FFYomqX, │ │ Verified: (bool) false, │ │ Share: (uint8) 100 │ │ } │ │ }, │ │ MaxSupply: (uint64) 0, │ │ IsMutable: (bool) true, │ │ RetainAuthority: (bool) false, │ │ MaxNumberOfLines: (uint32) 10 │ │ } │ └─ Accounts[len=4] │ ├─ config: CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ [WRITE, SIGN] │ ├─ authority: F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw [WRITE, SIGN] │ ├─ payer: 43xqaQkf8N95Af64ZqafbcQsPWdKqy5BRWxH7FFYomqX [WRITE, SIGN] │ └─ rent: SysvarRent111111111111111111111111111111111 [] ├─ Program: NftCandyMachine AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi │ └─ Instruction: AddConfigLines │ ├─ Params[len=2] │ │ ├─ Index: (uint32) 0 │ │ └─ ConfigLines: ([]nft_candy_machine.ConfigLine) (len=5 cap=5) { │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 0", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 1", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 2", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 3", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 4", │ │ Uri: (string) (len=11) "www.aol.com" │ │ } │ │ } │ └─ Accounts[len=2] │ ├─ config: CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ [WRITE, SIGN] │ └─ authority: F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw [WRITE, SIGN] ├─ Program: NftCandyMachine AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi │ └─ Instruction: AddConfigLines │ ├─ Params[len=2] │ │ ├─ Index: (uint32) 5 │ │ └─ ConfigLines: ([]nft_candy_machine.ConfigLine) (len=5 cap=5) { │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 5", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 6", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 7", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 8", │ │ Uri: (string) (len=11) "www.aol.com" │ │ }, │ │ (nft_candy_machine.ConfigLine) { │ │ Name: (string) (len=8) "Sample 9", │ │ Uri: (string) (len=11) "www.aol.com" │ │ } │ │ } │ └─ Accounts[len=2] │ ├─ config: CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ [WRITE, SIGN] │ └─ authority: F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw [WRITE, SIGN] └─ Program: NftCandyMachine AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi └─ Instruction: AddConfigLines ├─ Params[len=2] │ ├─ Index: (uint32) 5 │ └─ ConfigLines: ([]nft_candy_machine.ConfigLine) (len=5 cap=5) { │ (nft_candy_machine.ConfigLine) { │ Name: (string) (len=8) "Sample 5", │ Uri: (string) (len=11) "www.aol.com" │ }, │ (nft_candy_machine.ConfigLine) { │ Name: (string) (len=8) "Sample 6", │ Uri: (string) (len=11) "www.aol.com" │ }, │ (nft_candy_machine.ConfigLine) { │ Name: (string) (len=8) "Sample 7", │ Uri: (string) (len=11) "www.aol.com" │ }, │ (nft_candy_machine.ConfigLine) { │ Name: (string) (len=8) "Sample 8", │ Uri: (string) (len=11) "www.aol.com" │ }, │ (nft_candy_machine.ConfigLine) { │ Name: (string) (len=8) "Sample 9", │ Uri: (string) (len=11) "www.aol.com" │ } │ } └─ Accounts[len=2] ├─ config: CUHjAx13Vg9c3pSkW3o3VU6QsQhirgst2aTjfN3rdkPZ [WRITE, SIGN] └─ authority: F9pKJxySLdZW2hhB8GydRZ1JBpxvsgbsdbnszEZga2Gw [WRITE, SIGN] 3, 190, 119, 65, 174, 141, 76, 230, 18, 66, 164, 105, 101, 31, 176, 105, 241, 125, 234, 8, 81, 29, 124, 118, 202, 19, 211, 151, 14, 42, 194, 42, 217, 112, 119, 2, 39, 7, 106, 206, 227, 149, 183, 31, 166, 136, 134, 131, 94, 135, 175, 58, 218, 19, 80, 219, 189, 83, 141, 40, 140, 230, 40, 15, 9, 52, 149, 200, 51, 183, 51, 106, 98, 141, 23, 73, 99, 25, 91, 186, 163, 119, 86, 151, 157, 54, 246, 112, 171, 85, 23, 117, 63, 163, 114, 162, 65, 26, 49, 65, 56, 164, 239, 146, 103, 214, 234, 198, 52, 147, 122, 133, 215, 56, 171, 119, 199, 71, 21, 147, 250, 228, 30, 27, 243, 189, 116, 107, 0, 211, 64, 7, 19, 69, 69, 145, 123, 193, 136, 199, 62, 118, 174, 189, 19, 167, 4, 87, 223, 251, 46, 25, 171, 130, 224, 250, 111, 91, 218, 94, 163, 253, 76, 128, 147, 255, 98, 54, 176, 88, 71, 56, 104, 149, 64, 84, 164, 184, 164, 13, 255, 69, 57, 82, 44, 61, 215, 122, 175, 134, 124, 36, 4, 3, 0, 3, 6, 45, 85, 91, 171, 29, 62, 100, 248, 53, 214, 214, 144, 15, 216, 219, 198, 133, 63, 180, 25, 233, 97, 156, 242, 34, 43, 246, 16, 78, 21, 244, 142, 170, 110, 38, 195, 147, 120, 114, 205, 66, 167, 88, 138, 243, 63, 246, 60, 69, 79, 198, 8, 58, 17, 244, 226, 217, 204, 242, 24, 84, 138, 47, 88, 210, 69, 195, 113, 241, 23, 224, 48, 125, 242, 125, 110, 136, 244, 209, 44, 45, 208, 90, 196, 177, 70, 114, 201, 215, 166, 225, 47, 93, 43, 181, 24, 6, 167, 213, 23, 25, 44, 92, 81, 33, 140, 201, 76, 61, 74, 241, 127, 88, 218, 238, 8, 155, 161, 253, 68, 227, 219, 217, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 67, 179, 144, 55, 237, 108, 116, 33, 118, 20, 90, 148, 43, 194, 241, 111, 242, 190, 231, 219, 92, 184, 41, 238, 31, 44, 132, 64, 90, 2, 143, 167, 59, 139, 87, 224, 54, 180, 211, 98, 214, 152, 88, 7, 200, 184, 25, 64, 37, 116, 51, 223, 145, 42, 117, 6, 255, 152, 244, 214, 33, 228, 105, 6, 4, 2, 0, 1, 52, 0, 0, 0, 0, 0, 228, 11, 84, 2, 0, 0, 0, 97, 10, 0, 0, 0, 0, 0, 0, 142, 67, 179, 144, 55, 237, 108, 116, 33, 118, 20, 90, 148, 43, 194, 241, 111, 242, 190, 231, 219, 92, 184, 41, 238, 31, 44, 132, 64, 90, 2, 143, 4, 2, 0, 2, 12, 2, 0, 0, 0, 32, 161, 7, 0, 0, 0, 0, 0, 5, 4, 1, 2, 0, 3, 82, 208, 127, 21, 1, 194, 190, 196, 70, 6, 0, 0, 0, 74, 53, 83, 49, 65, 81, 6, 0, 0, 0, 83, 89, 77, 66, 79, 76, 244, 1, 1, 0, 0, 0, 45, 85, 91, 171, 29, 62, 100, 248, 53, 214, 214, 144, 15, 216, 219, 198, 133, 63, 180, 25, 233, 97, 156, 242, 34, 43, 246, 16, 78, 21, 244, 142, 0, 100, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 0, 5, 2, 1, 2, 151, 1, 223, 50, 224, 227, 151, 8, 115, 106, 0, 0, 0, 0, 5, 0, 0, 0, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 48, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 49, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 50, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 51, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 52, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 5, 2, 1, 2, 151, 1, 223, 50, 224, 227, 151, 8, 115, 106, 5, 0, 0, 0, 5, 0, 0, 0, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 53, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 54, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 55, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 56, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 57, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 5, 2, 1, 2, 151, 1, 223, 50, 224, 227, 151, 8, 115, 106, 5, 0, 0, 0, 5, 0, 0, 0, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 53, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 54, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 55, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 56, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109, 8, 0, 0, 0, 83, 97, 109, 112, 108, 101, 32, 57, 11, 0, 0, 0, 119, 119, 119, 46, 97, 111, 108, 46, 99, 111, 109 panic: (*jsonrpc.RPCError)(0xc0003a4780)({ Code: (int) -32002, Message: (string) (len=89) "Transaction simulation failed: Error processing Instruction 2: custom program error: 0x65", 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) "2", (map[string]interface {}) (len=1) { (string) (len=6) "Custom": (json.Number) (len=3) "101" } } }, (string) (len=4) "logs": ([]interface {}) (len=8 cap=8) { (string) (len=51) "Program 11111111111111111111111111111111 invoke [1]", (string) (len=48) "Program 11111111111111111111111111111111 success", (string) (len=51) "Program 11111111111111111111111111111111 invoke [1]", (string) (len=48) "Program 11111111111111111111111111111111 success", (string) (len=63) "Program AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi invoke [1]", (string) (len=39) "Program log: Custom program error: 0x65", (string) (len=90) "Program AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi consumed 2651 of 200000 compute units", (string) (len=87) "Program AaLmaSPfGgUz2ncvqvAoby56UTo37CkV1y3YzwHfNEzi failed: custom program error: 0x65" }, (string) (len=13) "unitsConsumed": (json.Number) (len=1) "0" } })

goroutine 1 [running]: main.sendTx(0xc000219800, 0xc00013a6e0, 0x94188d, 0x1c, 0xc000308000, 0x6, 0x6, 0xc0002fa050, 0x3, 0x3) /mnt/c/Users/Desktop/BCWARE/Solana/Testing/gagliardetto/metaplex-go/examples/candy/main.go:483 +0x757 main.main() /mnt/c/Users/Desktop/BCWARE/Solana/Testing/gagliardetto/metaplex-go/examples/candy/main.go:207 +0x1d05 exit status 2

gagliardetto commented 2 years ago

Did you rewrite the example using the CM v2?

You need to deploy the CMv2 rust program and use the CMv2 golang client (all instructions and data types; there should be no trace of CMv1)

rahulanand20 commented 2 years ago

Yes I have deployed metaplex-release-v1.1.0 ->nft_candy_machine_v2 (The rust code) and CMv2 golang client from the link which you have mentioned( https://github.com/gagliardetto/metaplex-go/releases/tag/v0.1.4) in the above feeds. But it's not working

gagliardetto commented 2 years ago

The error is 0x65 which is 101 in decimal, which corresponds to the InstructionFallbackNotFound error, which means instruction not found; see https://anchor.so/errors

It looks like you're still using │ │ └─ Data: (nft_candy_machine.ConfigData) { (should be nft_candy_machine_v_2)

rahulanand20 commented 2 years ago

Thanks, @gagliardetto. Can just confirm the steps and git repos that I have worked on.

Step 1: Build and deploy the rust code -> nft-candy-machine-v2 to your local (https://github.com/metaplex-foundation/metaplex/tree/release/v1.1.0/rust/nft-candy-machine-v2) Output - ProgramId

Step 2: Build and deploy the rust code to your local ->token-metadata (https://github.com/metaplex-foundation/metaplex/tree/release/v1.1.0/rust/token-metadata) Output - ProgramId

Step 3: Mention the keygenpath(https://github.com/gagliardetto/metaplex-go/blob/31ed54747b1e53b27371e5bf1c52dc00893ac6e9/examples/candy/main.go#L27) , programid's of nft-candy-machine-v2(https://github.com/gagliardetto/metaplex-go/blob/31ed54747b1e53b27371e5bf1c52dc00893ac6e9/examples/candy/main.go#L77) ,token-metadata(https://github.com/gagliardetto/metaplex-go/blob/31ed54747b1e53b27371e5bf1c52dc00893ac6e9/examples/candy/main.go#L80) ,privatekey of the wallet in (https://github.com/gagliardetto/metaplex-go/blob/31ed54747b1e53b27371e5bf1c52dc00893ac6e9/examples/candy/main.go#L569) from https://github.com/gagliardetto/metaplex-go/

Step 4: Start the solana-test-validator

Step 5: Run the main.go, client

Kindly let me know whether I'm missing any steps.

gagliardetto commented 2 years ago

I'm going to rewrite that code sample this week. Will see if I can find the issue.

rahulanand20 commented 2 years ago

Sure @gagliardetto pl let me know once you are done with your code or if you are able to find the issue..Thanks

yangyangpig commented 2 years ago

@rahulanand20 Did you have solved the error?

yangyangpig commented 2 years ago

@gagliardetto how to sloved the error, i use anchor-go of main branch and solana-go of v1.0.5, please help me

gagliardetto commented 2 years ago

have you seen the candy machine example in the repo?