CityOfZion / neo3-preview

A block explorer and preview of the NEO 3.0 ecosystem
https://neo3-preview.com/
MIT License
5 stars 5 forks source link

[Idea] Change Raw Script into real raw script #80

Open ixje opened 4 years ago

ixje commented 4 years ago

The transaction's page has a raw script section as shown below image

The data displayed is not actually "raw", it is still base64 encoded. My suggestion would be to base64 decode it and put the real raw script bytes in there.

ixje commented 4 years ago

the same suggestion also applies to notifications. e.g. https://neo3-preview.com/transaction/0x019befa728a371a08fb0f78330b3c697ebc9d8bbf252bd173b17cc2bd6e97e9c

image

The "HEXSTRING" version is still base64 encoded instead of the "real" hex string. If you toggle the format to "STRING" that does first decode it.

lllwvlvwlll commented 4 years ago

I agree that we probably want to display the values in the expected (decoded) format. I could see scenarios where the notification has a byte[] publicKey for example.