extension icon indicating copy to clipboard operation
extension copied to clipboard

Improve method display

Open xlc opened this issue 5 years ago • 3 comments

What I want

Screen Shot 2020-09-01 at 10 31 08 PM

What I got

Screen Shot 2020-09-01 at 10 30 14 PM

I don't think average user is able to figure out what is call index 0x0f03

xlc avatar Sep 01 '20 10:09 xlc

Yes, I know, but really not going to pull params decoding as in apps in here. Maybe someday that package gets a bit of TLC, is extract and can be used. Until then, have to live with toHuman for a while longer.

jacogr avatar Sep 01 '20 10:09 jacogr

As to specifics, the callIndex is not very "human", may want to remove it

https://github.com/polkadot-js/api/blob/master/packages/types/src/generic/Call.ts#L232

jacogr avatar Sep 01 '20 10:09 jacogr

Another thing will be helpful is make arguments named. So instead of array, make it

{
"proposal": "0x...",
"index": 13,
"approve": true,
}

xlc avatar Sep 01 '20 11:09 xlc