Skip to content

Commit

Permalink
fix syntax error (#120)
Browse files Browse the repository at this point in the history
* fix syntax error

* change location of Uint8List syntax fix
  • Loading branch information
stevenspiel committed Jan 9, 2024
1 parent fa987df commit f6c1cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/util/crypto_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Uint8List sha3Hash(Uint8List data, {int length = 256}) {
String hashMembers(List<String> memberIds) {
final sorted = memberIds.toList()..sort();
final bytes = utf8.encode(sorted.join());
return hex.encode(pc.SHA3Digest(256).process(bytes));
return hex.encode(pc.SHA3Digest(256).process(Uint8List.fromList(bytes)));
}

final base58 =
Expand Down

0 comments on commit f6c1cd2

Please sign in to comment.