Skip to content

Validate network against provider #134

@0xmichalis

Description

@0xmichalis

Currently ToucanClient accepts a network and a provider/signer but does not validate that they match. In order to do this we need to call out to the provider to fetch the chain id, convert to a network and compare with the provided network. Since this involves an async operation, it cannot be done in the ToucanClient constructor and would require having a separate init function that we also need to ensure users run before they can use the rest of the SDK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions