Substrate error - consider giving `accuracy` a type

我的未来我决定 提交于 2021-01-29 10:38:55

问题


I ran into the same error, initially I tried with default nightly-2020-10-05, then nightly-2020-10-01 and nightly-2020-10-06... but nothing is working.

Steps followed to downgrade the nightly are :

  • rustup uninstall nightly
  • rustup install nightly-
  • rustup target add wasm32-unknown-unknown --toolchain nightly-
  • WASM_BUILD_TOOLCHAIN=nightly- cargo build --release

I have tried on both Windows and Ubuntu 18.04 environment. But every time I get the same error.

consider giving accuracy a type


回答1:


https://github.com/paritytech/substrate/issues/7287

rustup default nightly-2020-10-06 && rustup target add wasm32-unknown-unknown

Or just update to substrate 2.0.1, this issue is fixed in that version




回答2:


You can use rustup to manage your version, make sure your active toolchain is like this:

$ rustup show

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-2020-10-05-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin

installed targets for active toolchain
--------------------------------------

wasm32-unknown-unknown
x86_64-apple-darwin

active toolchain
----------------

nightly-2020-10-05-x86_64-apple-darwin (default)
rustc 1.49.0-nightly (beb5ae474 2020-10-04)


来源:https://stackoverflow.com/questions/65697367/substrate-error-consider-giving-accuracy-a-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!