Closed gskapka closed 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.
hex_data
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?
Spoke with @igorls on telegram and he's fixed this in commits b7e2ead86d0c14ab206653814e854ec9457a294c through to f7a18b55ab8f0a0b92c67b0f326bf45415e25677.
Fantastic response!
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:
The line of code in question is here.
How can we get the original, eos-specific encoding back?