eoscanada / eos-go

EOS.IO Go API library
MIT License
561 stars 217 forks source link

fix decoding of table rows with variant types #204

Closed fschoell closed 1 year ago

fschoell commented 1 year ago

Background

Decoding of table rows fails if the table type is a variant. Example error from dfuse:

row struct "variant<account_v0>", err: structure [variant<account_v0>] not found in abi

Summary

fixed this by having decode() check first if the given struct name is a variant and if so use the variant type instead.

Note

Checklist