toXdr method

XdrSorobanAuthorizedInvocation toXdr()

Implementation

XdrSorobanAuthorizedInvocation toXdr() {
  List<XdrSorobanAuthorizedInvocation> xdrSubInvocations =
      List<XdrSorobanAuthorizedInvocation>.empty(growable: true);
  for (SorobanAuthorizedInvocation sub in this.subInvocations) {
    xdrSubInvocations.add(sub.toXdr());
  }
  return XdrSorobanAuthorizedInvocation(
      this.function.toXdr(), xdrSubInvocations);
}