eosrio / hyperion-history-api

Scalable Full History API Solution for Antelope (former EOSIO) based blockchains
https://hyperion.docs.eosrio.io
Other
125 stars 72 forks source link

`hex_data` field in action is no longer encoded per the EOS encoding spec. #125

Closed gskapka closed 2 years ago

gskapka commented 2 years ago

The route to get actions used to return the hex_data field as a hex string of the action data, encoded per the EOS encoding spec.

Now it returns a hex string that is the json encoding of the action data:

            act.action_trace.act.hex_data = Buffer.from(flatstr(JSON.stringify(action.act.data))).toString('hex');

The line of code in question is here.

How can we get the original, eos-specific encoding back?

gskapka commented 2 years ago

Spoke with @igorls on telegram and he's fixed this in commits b7e2ead86d0c14ab206653814e854ec9457a294c through to f7a18b55ab8f0a0b92c67b0f326bf45415e25677.

Fantastic response!