ZhenyaUsenko / motoko-hash-map

Stable hash maps for Motoko
MIT License
41 stars 12 forks source link

not working after update #9

Closed paulous closed 1 year ago

paulous commented 1 year ago

I am getting this error after updating: Stderr:

.mops/map@9.0.0/src/Map/modules/rehash.mo:3.82-3.94: type error [M0119], object field nat32ToNat64 is not contained in expected type
  module {}

thanks!

ZhenyaUsenko commented 1 year ago

Hi. Map v9 requires the latest Motoko Compiler (v0.9.8) https://github.com/dfinity/motoko/releases/tag/0.9.8

ZhenyaUsenko commented 1 year ago

If you are using vessel, use the next config

{
  dependencies = [
    ...
  ],
  compiler = Some "0.9.8",
}

And then deploy with

DFX_MOC_PATH=$(vessel bin)/moc dfx deploy

paulous commented 1 year ago

Ok thanks! I am using dfx 0.14.4 . I am just experimenting with stuff and not too deep into it, so I guess I will have to wait until the motoko compiler is updated maybe.