run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<void> run() async {
final provider = providerFromArgs(globalResults);
final res = await provider.call(
request: functionCallFromArgs(argResults),
blockId: BlockId.latest,
);
stdout.writeln(
res.when(
result: (result) => result.map((f) => f.toHexString()),
error: (error) => throw Exception(error),
),
);
}