Skip to content

chore(motoko): migrate cert-var to mo:core 2.4.0#1340

Merged
raymondk merged 1 commit intomasterfrom
chore/mo-core-2.4.0-cert-var
Apr 21, 2026
Merged

chore(motoko): migrate cert-var to mo:core 2.4.0#1340
raymondk merged 1 commit intomasterfrom
chore/mo-core-2.4.0-cert-var

Conversation

@marc0olo
Copy link
Copy Markdown
Member

@marc0olo marc0olo commented Apr 21, 2026

Summary

  • Add mops.toml: moc 1.5.1, core 2.4.0, -W=M0236,M0237,M0223
  • Update dfx.json packtool to mops sources
  • Replace mo:base imports with mo:core equivalents
  • Drop unused Debug import
  • Use x.toNat8() context dot instead of Nat8.fromNat(Nat32.toNat(x)), dropping the Nat8 import
  • Fix M0194: blobOfNat32 was using captured actor field value instead of its parameter n (functionally equivalent since it's always called with value, but causes an unused-parameter warning)

- Add mops.toml: moc 1.5.1, core 2.4.0, -W=M0236,M0237,M0223
- Update dfx.json packtool to "mops sources"
- Replace mo:base imports with mo:core equivalents
- Drop unused Debug import
- Use x.toNat8() context dot instead of Nat8.fromNat(Nat32.toNat(x)), dropping Nat8 import
- Fix M0194: blobOfNat32 was using captured `value` instead of parameter `n`
@marc0olo marc0olo requested a review from a team as a code owner April 21, 2026 11:43
func byte(x : Nat32) : Nat8 {
Nat8.fromNat(Nat32.toNat(x));
};
func byte(x : Nat32) : Nat8 = x.toNat8();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If this is really necessary maybe it should be in the certified data. It doesn't make sense that a user would have to implement it themselves.

@raymondk raymondk merged commit 16f5151 into master Apr 21, 2026
9 checks passed
@raymondk raymondk deleted the chore/mo-core-2.4.0-cert-var branch April 21, 2026 14:09
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.

2 participants