call<T> method

Future<T> call<T>(
  1. String method, [
  2. List args = const []
])

Direct Ethers provider call to access Blockchain data.

Implementation

Future<T> call<T>(String method, [List<dynamic> args = const []]) async {
  switch (T) {
    case BigInt:
      return (await call<BigNumber>(method, args)).toBigInt as T;
    default:
      return promiseToFuture<T>(callMethod(this, method, args));
  }
}