streamingfast / solana-go

Go library for the Solana Blockchain
Apache License 2.0
121 stars 25 forks source link

Error in unmarshalling when calling getSignaturesForAddress #20

Open harjas27 opened 1 year ago

harjas27 commented 1 year ago

RPC: getSignaturesForAddress Spec: https://docs.solana.com/developing/clients/jsonrpc-api#getsignaturesforaddress In case one of the transactions returned had an error, client is unable to unmarshal the err field in the transaction signature information which results in :

json: cannot unmarshal string into Go struct field TransactionSignature.err of type map[string]interface {}

Probable suspect is the definition of the TransactionSignature struct which expects a TransactionError struct for the err field which instead is just a `string

harjas27 commented 1 year ago

https://explorer.solana.com/tx/5Jehwf7Yt8gx7bGg3DrhXhf1Lgh7nZgAtEs1BBi5zSgXs9giWreKfXUhCgbChgdKzXbGAoKkya4fqRg9RxYL9kQw