The inbuilt parse data utility from streams API is not working correctly. It always returns a key-value pair as a response where the key is the event parameter name and the value is undefined.
This is the actual event received from streams API
{
confirmed: false,
chainId: '0x13881',
abi: [
{
anonymous: false,
inputs: [Array],
name: 'ItemAdded',
type: 'event'
}
],
streamId: 'fb6d5dc8-fecf-4490-a97a-508d6e85f38d',
tag: 'WEB_2_ADD_ITEM_DEVELOPMENT',
retries: 0,
block: {
number: '29179789',
hash: '0x4ffd57f49cf3c0ceef515085599859639632275c14128c30aa8bdecb1a657fb8',
timestamp: '1668588427'
},
logs: [
{
logIndex: '127',
transactionHash: '0xa5123fccdfbaad40715a9450c843e03e815c2e75de35ae69d7d593a0669e17db',
address: '0x450dab417e18f4dd9df17643a5e145045c5ba0ed',
data: '0x',
topic0: '0x78d68ba0e8c23b92e7c700d99efed2719520cbd4af845b2c03ae251f9cdf3d52',
topic1: '0x000000000000000000000000000000000000000000000000000000000000001a',
topic2: '0xab1ec0c17fb623104278a13673518d4573282c563574a2f550724be95c794a15',
topic3: null
}
],
txs: [],
txsInternal: [],
erc20Transfers: [],
erc20Approvals: [],
nftApprovals: { ERC1155: [], ERC721: [] },
nftTransfers: []
}
When parsing with the parse data function, it doesnβt parse it properly
[ { itemId: undefined, itemName: undefined } ]