Closed Tguntenaar closed 1 year ago
I found this issue while setting up my environment with @ailisp
It is a known issue: https://github.com/near/nearcore/issues/9143.
We are waiting for resolution from nearcore team. Keep using Rust 1.69 until there is a solution.
workspace-rs
will have to be updated as well.
Description:
The current version of the code is unable to generate the correct devgovgigs.wasm file when using the latest version of Rust (1.70). As a workaround, it was necessary to install Rust 1.67.1, set it as the default toolchain, and add the wasm32-unknown-unknown target.
Steps to Reproduce
Install the latest version of Rust (1.70.0)
In my case I used
rustup default stable-aarch64-apple-darwin
Then deploy using the near-cli and call the
new
func.Actual Behavior
The contract is able to deploy but calling
new
gives:Additional Information
Operating System: macOS Monetery 12.5
Possible Work around
Set Rust 1.67.1 as the default toolchain using
Expected Behavior
The code should generate the correct devgovgigs.wasm file using the latest version of Rust (1.70) without the need to install an older version and perform additional steps.