Hi guys!
I’m trying to get some data from the token contract from the predicate like here
predicate;
use token_abi::Token;
...
fn main() -> bool {
let res = abi(Token, ASSET_1).config();
log(res.decimals);
...
and having this error
^^/p/f/l/predicate >>> forc build (1) (*master+54) 08:04:55
Compiled library "core".
Compiled library "std".
Compiled library "token_abi".
error
--> /Users/alexey/.forc/git/checkouts/std-57e47d01450577b4/c32b0759d25c0b515cbf535f9fb9b8e6fda38ff2/sway-lib-std/src/logging.sw:9:5
|
7 |
8 | pub fn log<T>(value: T) {
9 | __log::<T>(value);
| ^^^^^^^^^^^^^^^^^ Internal compiler error: Unable to determine ID for log instance.
Please file an issue on the repository and include the code that triggered this error.
10 | }
|
____
Aborting due to 1 error.