wait method

Future<TransactionReceipt> wait([
  1. int? confirms
])

Wait for this hash transaction to be mined with confirms confirmations, same as Provider.waitForTransaction.

Implementation

Future<TransactionReceipt> wait([int? confirms]) async {
  return TransactionReceipt._(
    await promiseToFuture<_TransactionReceiptImpl>(callMethod(
      this.impl,
      'wait',
      confirms != null ? [confirms] : [],
    )),
  );
}