Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected empty event when fetching events on block 703071. #158

Closed
AlexZhenWang opened this issue Aug 24, 2020 · 6 comments
Closed

Unexpected empty event when fetching events on block 703071. #158

AlexZhenWang opened this issue Aug 24, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@AlexZhenWang
Copy link
Contributor

AlexZhenWang commented Aug 24, 2020

Hi guys, I got an empty event when fetching events on block 703071.

After calling await this.api.query.system.events.at(blockHash).toPromise(),
I got:
'[{"phase":{"ApplyExtrinsic":0},"event":{"index":"0x0000","data":[{"weight":10000,"class":"Operational","paysFee":true}]},"topics":[]}, {"phase":{"ApplyExtrinsic":1},"event":{"index":"0x0000","data":[{"weight":10000,"class":"Normal","paysFee":true}]},"topics":[]}, {"phase":{"ApplyExtrinsic":2},"event":{"index":"0x0303","data":[2,{"symbol":"0xd373896af0d70b40c8b80af075f2761043c1a63798a2c5cb95d68f1d66bd2f0000000040228a097ac4865aa84c3b4b0000020000000000102700000001","decimalPlaces":0}]},"topics":[]}, {"phase":{"ApplyExtrinsic":0},"event":{"index":"0x0000","data":null},"topics":[]}]'

The last even here is an empty event but seems like there shouldn't be an empty event in this block.

@jordy25519 jordy25519 added the bug Something isn't working label Aug 24, 2020
@jordy25519
Copy link
Contributor

Could be related to AssetInfoUpdated event/tx

@AlexZhenWang
Copy link
Contributor Author

AlexZhenWang commented Aug 24, 2020

Could be related to AssetInfoUpdated event/tx

Thanks for checking!
Yeah, exactly, the index of the third event is 0x0303- GenericAsset AssetInfoUpdated. Also, just share what I see, I see the Compact.decodeU8a() returns length 4 when decoding event, but the u8a are all used after decoding the first 3 events.

@wilfred-centrality
Copy link

wilfred-centrality commented Aug 25, 2020

@Holygits let's prioritise this between the transition UI launch and the transition processing event, as it's needed for the block explorer @AlexZhenWang is working on.

@AlexZhenWang
Copy link
Contributor Author

Thank you 🙌 @wilfred-centrality !

@aliXsed
Copy link

aliXsed commented Aug 25, 2020

@KarishmaBothara This is likely to be caused by the fact that we haven't added our cennznet custom events (here AssetInfoUpdated) to metadata. But it's not just that. We have events in CENNZx for AddLiquidity for example that are not covered in the metadata. So when adding this, it would be good if you add all the others as well.

@jordy25519
Copy link
Contributor

support this will be in the next release, closed via #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants