rossbulat/ink-nft

invocations of env.caller() and env.println()

Closed this issue · 1 comments

self.owner.set(env::caller());

In a few places you use env::caller() or env::println() which should be env.caller() or env.println(), one place I've shown above but there are more places that should also be found and corrected.

Ok, I made the switch, there were no issues testing env.caller(), used in deploy and pub(external) functions.

env.println() however is giving an error running cargo test if we do not explicitly import it:

Screenshot 2019-05-08 at 17 25 22

However when we do, and just call println(), it compiles fine:

use ink_core::{
    env::{self, println, AccountId, Balance},
   ...
}