Skip to content

Use H160 format for Address selection in v6 #582

@AlexD10S

Description

@AlexD10S

Reported by a user on Telegram.

When using a smart contract like the following:

#[ink(storage)]
    pub struct TestContract {
        name: String,
        dao_address: Address,
    }

    impl TestContract {
        #[ink(constructor)]
        pub fn new(name: String,  dao_address: Address>) -> Self {
            Self { name, dao }
        }

In version 6, when trying to input an address, the UI shows a list of Address entries, but not in the H160 format expected by v6. This results in an error: Contract reverted:

Image

Fix

Display the list of available addresses in H160 format, similar to how it was handled in v5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions