expectClient function

TxResolutionClient expectClient(
  1. BuildOptions options
)

Implementation

TxResolutionClient expectClient(BuildOptions options) {
  if (options.resolutionClient != null) {
    return options.resolutionClient!;
  }
  if (options.client == null) {
    throw ArgumentError(
      "No provider passed to Transaction#build, but transaction data was not sufficient to build offline.",
    );
  }

  return JsonRpcResolutionClient(options.client!);
}