parseResponse static method

Uint8List parseResponse(
  1. dynamic result
)

Implementation

static Uint8List parseResponse(dynamic result) {
  if (result is Uint8List) {
    return result;
  } else if (result is List<int>) {
    return Uint8List.fromList(result);
  } else if (result is Map) {
    return Uint8List.fromList(result.values.cast<int>().toList());
  } else {
    throw Exception('Unexpected result type from near_signTransaction');
  }
}