invocations of env.caller() and env.println()
Closed this issue · 1 comments
lsaether commented
Line 62 in ce7f24b
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.
rossbulat commented
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:
However when we do, and just call println()
, it compiles fine:
use ink_core::{
env::{self, println, AccountId, Balance},
...
}