We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad93da2 commit 21b3529Copy full SHA for 21b3529
packages/tfchain_client/lib/src/utils.dart
@@ -1,4 +1,12 @@
1
+import 'dart:typed_data';
2
+
3
bool isValidSeed(String seed) {
4
final RegExp hexRegex = RegExp(r'^[0-9a-fA-F]+$');
5
return hexRegex.hasMatch(seed);
6
}
7
8
+Uint8List dynamicListToUint8List(dynamicList) {
9
+ List<int> intList = dynamicList.cast<int>().toList();
10
+ Uint8List data = Uint8List.fromList(intList);
11
+ return data;
12
+}
0 commit comments