use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
61 stars 45 forks source link

Display non-String-ified types in Outcome #421

Closed cmichi closed 1 year ago

cmichi commented 1 year ago

I return a Vec<Player> from a contract. Player looks like this:

    pub struct Player {
        pub id: AccountId,
        pub name: String,
        pub gas_used: u64,
        pub score: u64,
    }

The UI displays this though:

screenshot-contracts-ui substrate io-2023 03 03-19_05_55

It would be great to have the actual types reflected there and not their String representation. So e.g. for gas_used and score a Number. It's harder to debug stuff because this displayed representation is not what is actually returned,

peetzweg commented 1 year ago

Resolved in #441.