gagliardetto
gagliardetto
Solana programs (a.k.a. "smart contracts") can be called via transactions; each transaction contains one or more instructions (which are the parameters of the smart contract call). An example: https://github.com/gagliardetto/solana-go#transfer-sol-from-one-wallet-to-another-wallet
> i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ? Are you using anchor?
`solana-go` is not equipped to function with solang or solidity contracts deployed on Solana. From the https://github.com/hyperledger-labs/solang docs, I see there's some abstraction and ABI. There's currently no support for...
> > > > i dont know how to call my function exactly, such as i want to call function Add(uint, uint) from my program ? > > > >...
the decoder for the Ed25519SigVerify program is not implemented yet
How about ```go if out == nil || out.Value == nil { ``` but in that case, can we be sure that `out == nil` means `not found` ?
In some cases, `result == nil` follows the spec (e.g. `getBlock`: https://github.com/solana-labs/solana/blob/master/docs/src/developing/clients/jsonrpc-api.md#getblock )
```go if out == nil { return nil, errors.New("expected a value, got null response") } ```
https://github.com/gagliardetto/solana-go/commit/e6a58061889f44feecf7e5e6305cc851d06fb3a5
Thanks for bringing this up! I've started looking into this and will get back to you.