cast::IERC20

Function new

Source
pub const fn new<T: Transport + Clone, P: Provider<T, N>, N: Network>(
    address: Address,
    provider: P,
) -> IERC20Instance<T, P, N>
Expand description

Creates a new wrapper around an on-chain IERC20 contract instance.

See the wrapper’s documentation for more details.