Skip to main content
trevoro's user avatar
trevoro's user avatar
trevoro's user avatar
trevoro
  • Member for 1 year, 10 months
  • Last seen more than 1 year ago
awarded
awarded
Loading…
comment
How to transfer SOL in a contract using the playground?
I tested again with the Rust code too and it all works now. Before I was using my old Rust code thinking it was a client only problem.
comment
How to transfer SOL in a contract using the playground?
Thanks. I am testing and get this - "SOL balance: 8.288851 Uncaught error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: instruction spent from the balance of an account it does not own" I checked the pg wallet and that is valid, also I have a bal. I checked various vars and they all look ok. It works until the actual sendTxn part and then it flags this ownership issue. I am using the pg and I assumed that injects the credentials into the client?
awarded
revised
Loading…
comment
How to transfer SOL in a contract using the playground?
There is no error message from the given code because instruction is not defined.
Loading…
awarded
comment
How to get USDC balance in a Phantom Wallet?
This was useful for a direction to take. The actual code snippet needed changing for me, and I am including the working code in a separate post. I assume the differences relate to versions. I have ver 0.3.7 for for spl-token.
Loading…
awarded
comment
How to get balance using wallet adapters and connections?
I also added {connection}=useConnection(); and a test is needed before getBalance to test for null.
Loading…
awarded
Loading…