Giter Site home page Giter Site logo

smartstache / doorman Goto Github PK

View Code? Open in Web Editor NEW
56.0 3.0 22.0 796 KB

General purpose Solana program to purchase a token for a set amount of SOL. Created to be used as an on-chain whitelist for a candy machine.

JavaScript 79.69% Rust 16.32% Shell 1.58% HTML 1.77% CSS 0.64%
solana rust nft whitelist anchor

doorman's Issues

Insufficient funds, while my wallets and tokens have lots of sols!

Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 invoke [1]
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: InitializeAccount
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3412 of 177975 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
Program log: token account owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: SetAuthority
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2028 of 148812 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
Program log: mint token vault owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: Transfer
Program log: Error: insufficient funds
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2403 of 131812 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 consumed 200000 of 200000 compute units
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 failed: custom program error: 0x1
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
at Connection.sendEncodedTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6654:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Connection.sendRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6613:20)
at async sendAndConfirmRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:8597:21)
at async Provider.send (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/provider.js:85:22)
at async Object.rpc [as initialize] (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/program/namespace/rpc.js:11:31)
at async performInit (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/scripts/initialize.js:84:13) {
logs: [
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 invoke [1]',
'Program 11111111111111111111111111111111 invoke [2]',
'Program 11111111111111111111111111111111 success',
'Program 11111111111111111111111111111111 invoke [2]',
'Program 11111111111111111111111111111111 success',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: InitializeAccount',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3412 of 177975 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success',
'Program log: token account owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: SetAuthority',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2028 of 148812 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success',
'Program log: mint token vault owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: Transfer',
'Program log: Error: insufficient funds',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2403 of 131812 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1',
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 consumed 200000 of 200000 compute units',
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 failed: custom program error: 0x1'
]
}
(node:12773) UnhandledPromiseRejectionWarning: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
at Connection.sendEncodedTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6654:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Connection.sendRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6613:20)
at async sendAndConfirmRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:8597:21)
at async Provider.send (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/provider.js:85:22)
at async Object.rpc [as initialize] (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/program/namespace/rpc.js:11:31)
at async performInit (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/scripts/initialize.js:84:13)
(Use node --trace-warnings ... to show where the warning was created)
(node:12773) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:12773) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am receiving this error despite the fact that I have funded my token wallet along with tokens in it, and my phantom wallet already has a lot of sols in it. I don't understand where the issue is starting!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.