ContractERC20 constructor

ContractERC20(
  1. String address,
  2. dynamic providerOrSigner
)

Instantiate ERC20 Contract using default abi.

isReadOnly is determined by whether providerOrSigner is Signer or not.

Implementation

ContractERC20(String address, dynamic providerOrSigner)
    : assert(providerOrSigner != null, 'providerOrSigner should not be null'),
      assert(address.isNotEmpty, 'address should not be empty'),
      assert(
          EthUtils.isAddress(address), 'address should be in address format'),
      contract = Contract(address, abi, providerOrSigner);