toXdr method

  1. @override
XdrHostFunction toXdr()
override

Implementation

@override
XdrHostFunction toXdr() {
  List<XdrSCVal> fcArgs = List<XdrSCVal>.empty(growable: true);

  if (this.arguments != null) {
    fcArgs.addAll(this.arguments!);
  }
  XdrInvokeContractArgs args = XdrInvokeContractArgs(
      Address.forContractId(this._contractID).toXdr(),
      this._functionName,
      fcArgs);
  return XdrHostFunction.forInvokingContractWithArgs(args);
}