Skip to content

Allow creation of contract instances from address #39

Description

@AuHau

If token uses "instance" of other contracts which are "linked" using address, then it would be nice to have ability to decode the address into contract's instance instead of getting the address. For example:

type TestContract = ref object of Contract
proc token(_: TestContract): Erc20Token {.contract, view.}

For that to allow, we need to have ability to get a Provider or Signer in the decode() function though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions