run method
Run the program with args
Implementation
Future<Output> run(List<Program> args) async {
final argsStr = await Future.wait(
args.map((e) async => e.serializeToHex()).toList(),
);
final result = await api.programRun(
serProgramBytes: await _programBytes,
argsStr: argsStr,
);
final program = Program._(
sourceType: _ProgramSourceType.bytes,
sourceValue: result.program,
);
final cost = BigInt.from(result.cost);
return Output(program, cost);
}