decode method Null safety
- XdrDataInputStream stream
Implementation
static XdrSorobanAuthorizedContractFunction decode(
XdrDataInputStream stream) {
XdrSCAddress contractAddress = XdrSCAddress.decode(stream);
String functionName = stream.readString();
int argsSize = stream.readInt();
List<XdrSCVal> args = List<XdrSCVal>.empty(growable: true);
for (int i = 0; i < argsSize; i++) {
args.add(XdrSCVal.decode(stream));
}
return XdrSorobanAuthorizedContractFunction(
contractAddress, functionName, args);
}