aleph-im / aleph-indexer-framework

TypeScript framework for deploying distributed indexers on Aleph VMs for Solana and EVM chains.
MIT License
31 stars 0 forks source link

Problem: string content in message event results in error #44

Closed odesenfans closed 1 year ago

odesenfans commented 1 year ago

Creating a message event with the Aleph message smart contract results in a query response error when fetching it from the indexer. We define a STORE_IPFS message type that takes an IPFS hash in the msgcontent field in string format, without quotation marks. This works and is used with the Tezos indexer (example).

Creating the event on etherscan

The resulting transaction

The indexer query

Indexer response

amalcaraz commented 1 year ago

For not breaking the current Event schema in case that the event content is not a valid stringified JSON. A plain object will be returned instead. It will contain the original non parsed value.

Take a look at: https://github.com/aleph-im/aleph-indexer-library/commit/7420083b80b85d7e5cff3530cb074cfdf68b0ed6