You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The formatter would remove the mutates keyword from all of the functions. For instance, the following snippet
structArray {
m: map<Intasuint16, Int>;
length: Int=0;
}
constMaxArraySize: Int=5_000;
extendsmutatesfunappend(self: Array, item: Int) {
require(self.length+1<=MaxArraySize, "No space in the array left for new items!");
self.m.set(self.length, item);
self.length+=1;
}
gets formatted as
structArray {
m: map<Intasuint16, Int>;
length: Int=0;
}
constMaxArraySize: Int=5000;
extendsfunappend(self: Array, item: Int) {
require((self.length+1) <=MaxArraySize,
"No space in the array left for new items!"
);
self.m.set(self.length, item);
self.length+=1;
}
The text was updated successfully, but these errors were encountered:
The formatter would remove the
mutates
keyword from all of the functions. For instance, the following snippetgets formatted as
The text was updated successfully, but these errors were encountered: