goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 45 forks source link

need to add the new field "delegate" #157

Closed Elemberg closed 3 years ago

Elemberg commented 4 years ago

example: https://mainnet-tezos.giganode.io/chains/main/blocks/987589

"internal_operation_results": [ { "kind": "delegation", "source": "KT1Fegm4guKbccxqthNnr3aewF5AcXZkBbXv", "nonce": 0, "delegate": "tz1aRoaRhSpRYvFdyvgWLL6TGyRoGF51wDjM", "result": { "status": "applied", "consumed_gas": "10000" } } ]

DefinitelyNotAGoat commented 3 years ago

Thank you for your PR. There is unfortunately a lot of block data missing in go-tezos/v2. I've been working on V3 since July and have solved this problem as well as added a bunch of helper functions to organize block contents by kind.

Your problem has been fixed here: https://github.com/goat-systems/go-tezos/blob/v3/rpc/block.go#L1292

Elemberg commented 3 years ago

ok, thanks