Can't find crate for 'integer_sqrt'

Hi Team,

while testing the below smart contract, the square root functionality is not at all getting executed and it is showing error as can't find crate for 'integer_sqrt'

But the same smart contract is getting executed on another linux machine.

Kindly suggest where it is going wrong?

How does this program get built and run? I don't see a Cargo.toml in your repository.

The code is weird, because it has both crate::calculator::integer_sqrt and extern crate. It mixes new crate:: and old extern crate syntax. Once of these shouldn't be needed — report this as a bug to the author of ParitySubstrate, because it may be a code that hasn't been properly upgraded to the 2018 edition module syntax.

The difference is likely due to different versions of Rust.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.