You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the type of the Receipt field is RawMessage, I have to parse it by gjson.
Of course the better way is use a Receipt Struct.
In nearcore the receipt is a Enum Type, it seems a bit hard to unmarshal it.
The text was updated successfully, but these errors were encountered:
type ReceiptView struct {
PredecessorID types.AccountID
json:"predecessor_id"
ReceiverID types.AccountID
json:"receiver_id"
ReceiptID hash.CryptoHash
json:"receipt_id"
Receipt json.RawMessage
json:"receipt"
// TODO: needs a type!}
Now the type of the Receipt field is RawMessage, I have to parse it by gjson.
Of course the better way is use a Receipt Struct.
In nearcore the receipt is a Enum Type, it seems a bit hard to unmarshal it.
The text was updated successfully, but these errors were encountered: