movementlabsxyz / M1

An L1 for Move VM built on Avalanche.
https://docs.movementlabs.xyz
BSD 3-Clause "New" or "Revised" License
72 stars 53 forks source link

Incompatible Aptos Framework APIs on M1 due to version mismatch #81

Open mvmt-ninja opened 1 year ago

mvmt-ninja commented 1 year ago

New and Deprecated ones

{
  "Error": "Simulation failed with status: Transaction Executed and Committed with Error LOOKUP_FAILED"
}

If you are suffering from such error above, then please take care of these apis. The Aptos Framework made these new functions instead of deprecated ones. But on M1, we only have only deprecated ones. Consequently, if we use new functions on M1, it will make LOOKUP_FAILED error. So if you want to deploy your dapp from Aptos to M1, you may suffer from such error, and please check this issue. Furthermore, if you find another apis, then it'd be great if you add them.

New : Don't use these apis on M1, because we don't have them on M1 Deprecated: Use these apis on M1. They are deprecated ones on Aptos, but we use them on M1.

New <= > Deprecated simple_map::new <=>simple_map::create

Unknown APIs on M1

aptos_framework::block::* aptos_framework::transaction_context::* aptos_std::simple_map::values() aptos_std::simple_map::keys()

l-monninger commented 1 year ago

Thanks for raising! We're working to create a more reliable system for keeping up to date with Aptos latest.