toXdr method
Implementation
XdrSorobanAuthorizedFunction toXdr() {
if (contractFn != null) {
XdrSorobanAuthorizedFunction cfn = XdrSorobanAuthorizedFunction(
XdrSorobanAuthorizedFunctionType
.SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN);
cfn.contractFn = contractFn!;
return cfn;
}
XdrSorobanAuthorizedFunction cfn = XdrSorobanAuthorizedFunction(
XdrSorobanAuthorizedFunctionType
.SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN);
cfn.createContractHostFn = createContractHostFn!;
return cfn;
}