Open PsychoPunkSage opened 3 days ago
hi @rianhughes
I tried to formulate a way to solve #567
Can you please give some suggestion on the approach before I start working on its proper integration with rest of the repo?
My method is in a temporary file called rpc/types_transaction_receipt_pps.go
.... I will later on put the logic inside rpc/types_transaction_receipt.go
once the approach is finalized.
@rianhughes
Integrated everything with a common TransactionReceipt
.
All test are passing.
Please have a look whenever you are free.
Closes #576
Here I created a
superset
type that can accommodate all the fields required by the different transaction receipts. This include includes all the fields from the various receipt types. Then I update theunmarshalling
logic to populate this new superset type based on the fields present in the JSON data.