Skip to main content
4 votes
Accepted

Send SPL per lamport for msg.sender solana alternative

Let's quickly get into why there isn't necessarily a msg.sender like you're used to on Ethereum. On Solana, you cannot guarantee that the person who paid the fee on the transaction is the traditional ...
Jacob Creech's user avatar
  • 3,854
4 votes
Accepted

i can't test my Counter Solang program "Error: unknown signer: "

The problem you are having is an issue with Solang. The modifier was changing the data account's signer flag to false, so the account you passed was not identifier as a signer, leading to the "...
Lucas Steuernagel's user avatar
3 votes
Accepted

Can I call methods(instructions) in solana abi using Javascript?

The JSON file you have is an Anchor IDL. You can call any program from javascript that you have an Anchor IDL of with Anchor client. In node: import { AnchorProvider, setProvider, Program } from "...
acheron's user avatar
  • 2,571
3 votes
Accepted

Solang anchor commands after "anchor init <name> --solidity" yields "Error: No such file or directory (os error 2)"

I am not sure what combination of solana/anchor versions I had but reinstalling the stable one with: sh -c "$(curl -sSfL https://release.solana.com/stable/install)" Did the trick.
CrossedCarpet's user avatar
3 votes

Is solang stable enough to use in production?

Solang support is relative new to Solana, however: We have been working on this project for many years now - writing a new compiler is a large effort We've had three security audits by Trail of Bits, ...
Sean Young's user avatar
2 votes
Accepted

Lamports not working when dealing with AccountInfo within Solang

Try using v0.3.2 of Solang, which seems to include the fix https://github.com/hyperledger/solang/releases/tag/v0.3.2 Solana The lamports and data fields of tx.accounts can be modified again.
john's user avatar
  • 7,405
2 votes

How to use Anchor's `.view()` in frontend without prompting wallet to sign?

Still haven't figured out how to use Anchor's .view() in a frontend without it prompting the connected wallet to sign for the simulated transaction. As a workaround, you can manually build a versioned ...
john's user avatar
  • 7,405
1 vote
Accepted

Maybe something wrong with program-examples/tokens/create-token/solang/tests /create-token.ts?

NFTs on Solana are also derived from the SPL Token Program but with decimals field set to 0 to signify non-fungibility. If you look at the code linked, createTokenMint function takes different inputs ...
Arihant Bansal's user avatar
1 vote

Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: incorrect program id for instruction

Have you checked the program ID you have written in your Rust code? declare_id!("THE ID")
Trevor's user avatar
  • 125

Only top scored, non community-wiki answers of a minimum length are eligible