简体   繁体   English

我正在尝试完成上传步骤以部署糖果机,我得到以下 output

[英]I'm trying to complete the upload step to deploy a candy machine and I get the below output

I'm trying to complete the upload step to deploy a candy machine and I am using Metaplex v2 and I am using devnet(not using minnet-beta) and "storage": "arweave" also set to devnet but still I get the below output error:我正在尝试完成上传步骤以部署糖果机,我正在使用 Metaplex v2,我正在使用 devnet(不使用 minnet-beta)和“storage”:“arweave”也设置为 devnet,但我仍然得到以下output 错误:


Beginning the upload for 10 (img+json) pairs
started at: 1642285341323
initializing candy machine
Transaction simulation failed: Attempt to debit an account but found no record of a prior credit. 
    
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
}
Error deploying config to Solana network. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
}
upload was not successful, please re-run. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
} ```

Please let me know if you have the other question.
Can you please help me with that and thanks to you in advance!

Check you have funds in the wallet keypair you are using.检查您正在使用的钱包密钥对中是否有资金。

solana balance

Then double check your config file you are using with the -cp option.然后使用 -cp 选项仔细检查您正在使用的配置文件。

Showing the exact cmd you are running as well would be useful.显示您正在运行的确切 cmd 也会很有用。

according to metaplex candy machine v2 document this is the minimum configuration:根据metaplex 糖果机 v2 文档,这是最低配置:

{
    "price": 1.0,
    "number": 10,
    "gatekeeper": null,
    "solTreasuryAccount": "<YOUR WALLET ADDRESS>",
    "splTokenAccount": null,
    "splToken": null,
    "goLiveDate": "25 Dec 2021 00:00:00 GMT",
    "endSettings": null,
    "whitelistMintSettings": null,
    "hiddenSettings": null,
    "storage": "arweave-sol",
    "ipfsInfuraProjectId": null,
    "ipfsInfuraSecret": null,
    "awsS3Bucket": null,
    "noRetainAuthority": false,
    "noMutable": false
}

so, you should put your devnet account public key instead of solTreasuryAccount所以,你应该把你的 devnet 帐户公钥而不是 solTreasuryAccount

for creating this wallet用于创建此钱包

solana-keygen new --outfile ~/.config/solana/devnet.json

from the above command, you have the public key of generated wallet.从上面的命令,你有生成钱包的公钥。 let's call it devnet-wallet-pubkey, so for airdrop some sol to it(repeat this command once again to have enough sol):让我们称之为 devnet-wallet-pubkey,所以为了空投一些溶胶到它(再次重复此命令以获得足够的溶胶):

solana airdrop 2 devnet-wallet-pubkey

now you can put this wallet public key instead of that solTreasuryAccount.现在你可以用这个钱包公钥代替那个 solTreasuryAccount。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM