Skip to content

Make Typed contructor idempotent #4560

Open
@RenanSouza2

Description

@RenanSouza2

Describe the Feature

Change the behaviour of the Typed constructor if another instance of Typed is passed as value

Code Example

const address = ..... // any address|addresssable
const type1 = Typed.address(address) // type1.value == address
const type2 = Typed.address(type1) // type2.value == address

const type3 = Typed.uint256(type1) // throws an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.investigateUnder investigation and may be a bug.v6Issues regarding v6

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions