expectClient function
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!);
}