Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 #18

Closed
SvenMeyer opened this issue Dec 3, 2021 · 0 comments · Fixed by #19
Closed

Comments

@SvenMeyer
Copy link

Did the instruction as described in the README (just added yarn init and touch yarn.lock)

OS : Arch Linux / Manjaro

package.json

{
  "name": "project",
  "packageManager": "[email protected]",
  "dependencies": {
    "@solana/solidity": "^0.0.18"
  }
}
$ node erc20.js
Connecting to your local Solana node ...
Airdropping SOL to a new wallet ...
Deploying the Solang-compiled ERC20 program ...
Program deployment finished, deploying the ERC20 contract ...
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 
    Program 11111111111111111111111111111111 invoke [1]
    Transfer: insufficient lamports 33450880, need 228956160
    Program 11111111111111111111111111111111 failed: custom program error: 0x1
(node:83032) UnhandledPromiseRejectionWarning: Error: custom program error: 0x1
    at parseTransactionError (/home/sum/DEV/SOLANA/solana-solidity.js/project/node_modules/@solana/solidity/lib/logs.js:161:31)
    at /home/sum/DEV/SOLANA/solana-solidity.js/project/node_modules/@solana/solidity/lib/logs.js:123:27
    at Generator.throw (<anonymous>)
    at rejected (/home/sum/DEV/SOLANA/solana-solidity.js/project/node_modules/@solana/solidity/lib/logs.js:6:65)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:83032) 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: 2)
(node:83032) [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.

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

Successfully merging a pull request may close this issue.

1 participant