I couldn't compile ink_env when doing cargo contract build
. Tried cargo update
by referencing this other [post] (error: duplicate lang item in crate `std` (which `arrayvec` depends on): `panic_impl`). But it still doesn't work.
error: duplicate lang item in crate `std` (which `num_traits` depends on): `oom`. | = note: the lang item is first defined in crate `ink_allocator` (which `ink_env` depends on) = note: first definition in `ink_allocator` loaded from /home/christopherfkk/phala-network-fat-contract-use-case/target/ink/wasm32-unknown-unknown/release/deps/libink_allocator-20507a21218d777e.rmeta = note: second definition in `std` loaded from /home/christopherfkk/phala-network-fat-contract-use-case/target/ink/wasm32-unknown-unknown/release/deps/libstd-a0c0252c27199310.rmeta error[E0152]: found duplicate lang item `panic_impl` --> /home/christopherfkk/.cargo/registry/src/github.com-1ecc6299db9ec823/ink_env-3.0.0/src/lib.rs:53:1 | 53 | fn panic(info: &core::panic::PanicInfo) -> ! { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: the lang item is first defined in crate `std` (which `num_traits` depends on) = note: first definition in `std` loaded from /home/christopherfkk/phala-network-fat-contract-use-case/target/ink/wasm32-unknown-unknown/release/deps/libstd-a0c0252c27199310.rmeta = note: second definition in the local crate (`ink_env`) For more information about this error, try `rustc --explain E0152`. error: could not compile `ink_env` due to 2 previous errors