Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix syntax error #120

Merged
merged 2 commits into from Jan 9, 2024
Merged

fix syntax error #120

merged 2 commits into from Jan 9, 2024

Conversation

stevenspiel
Copy link
Contributor

No description provided.

@crossle
Copy link
Member

crossle commented Jan 5, 2024

Which your dart version?

@stevenspiel
Copy link
Contributor Author

3.0.5

@@ -82,7 +82,7 @@ UuidValue nameUuidFromBytes(List<int> name) {
final bytes = md5.convert(name).bytes;
bytes[6] = (bytes[6] & 0x0f) | 0x30;
bytes[8] = (bytes[8] & 0x3f) | 0x80;
return UuidValue.fromList(bytes);
return UuidValue.fromList(Uint8List.fromList(bytes));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bytes from md5.convert(name).bytes should be List<int>
and UuidValue.fromList(List<int> byteList, {int? offset}) also accept List<int> as a parameter.

There should be no syntax errors here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops. I put the fix on the wrong line. Updated it.

@boyan01
Copy link
Contributor

boyan01 commented Jan 9, 2024

SGTM

dart 3.1 has a break change for this dart-lang/sdk#52801

@boyan01 boyan01 merged commit f6c1cd2 into MixinNetwork:master Jan 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants