apps icon indicating copy to clipboard operation
apps copied to clipboard

Null parameter display as 0 on Event

Open leonardocustodio opened this issue 2 years ago • 3 comments

On polkadot.js when we display at events a null parameter (that is optional). It shows as 0. Because of that, it is impossible for the person to know if the parameter was indeed 0 or null.

image image

leonardocustodio avatar Apr 20 '22 20:04 leonardocustodio

Seems like an issue with the Option<number> Component. Do you have a a link to the chain and blockhash for me as a testcase to check on?

jacogr avatar Apr 21 '22 04:04 jacogr

Here is the chain and one block that I've just made the transaction: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.rococo.efinity.io#/explorer/query/0x1bcea28f9c54322cf578de7dac28c7084463d14b8f03da47806e148507ef2b2d

But that's not an archive node. The info about the block will disappear real quickly. But it should be able to reproduce in any chains, I believe.

leonardocustodio avatar Apr 21 '22 14:04 leonardocustodio

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot avatar May 12 '22 14:05 polkadot-js-bot

Closing this one for now.

If an issue and actual reproduction would be appreciated alongside logging it. (The above chain doesn't currently exist, so difficult to verify - however since we have reworked Option display in react-params quite some time back, the underlying issue is now either gone or if something was missed, manifests differently)

jacogr avatar Mar 14 '23 16:03 jacogr

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

polkadot-js-bot avatar Apr 04 '23 08:04 polkadot-js-bot