You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
functiondeserializeTypeData(contract: Contract,account: string,structName: string,data: string|Uint8Array,textEncoder: TextEncoder,textDecoder: TextDecoder): any{consttype=contract.types.get(structName);if(typeofdata==="string"){data=hexToUint8Array(data);}if(!type){thrownewError(`Unknown type ${structName} in contract ${account}`);}constbuffer=newSerialBuffer({textDecoder, textEncoder});buffer.pushArray(data);returntype.deserialize(buffer);}
This works but you should know the struct name from contract code
(ex. for eosio rammarket in eosio.system/exchange_state.hpp the struct name is exchange_state)
Is there a way to deserialize the table_rows returned data that are serialized since they are not actions? (preferably through eosjs)
here below is the screenshot of what I was trying to accomplish:
The text was updated successfully, but these errors were encountered: