wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
42 stars 23 forks source link

Allow null Assets/Symbols #46

Closed jnordberg closed 1 year ago

jnordberg commented 1 year ago

Supersedes #45

aaroncox commented 1 year ago

The re-serialization of the voters table row still fails on this branch which I was discussing here https://github.com/greymass/eosio-core/pull/45#issuecomment-1343383163.

This test should be able to pass, right?

https://github.com/greymass/eosio-core/pull/45/files#diff-cfe6a7d1d76106cd10cc03f02e37b00311f3aaa004670502c5e79c84ff37e38bR1187-R1254

jnordberg commented 1 year ago

Hmm, I don't think those extra bytes at the end of that row are related to the null asset. Most likely the data you're getting from the node doesn't reflect the abi you're using (jungle3 abi differs from mainnet perhaps)

aaroncox commented 1 year ago

Yeah you are right. The ABI was generated from EOS, and the table record was pulled from Telos.

Telos has an additional Int64 field called last_stake which is accounting for the difference!