I am using functions called on the dependency trait NonFungibleTokenCore
and I would like to use the convivence wrapper of ext_contract
to simplify cross contract calls.
Here is my attempt to add it:
#[ext_contract(ext_non_fungible_token)]
trait NFTCore: NonFungibleTokenCore {}
My code completion using rust-analyzer
doesn't provide any completions. When I build it I get this error:
error[E0425]: cannot find function `nft_transfer` in module `ext_non_fungible_token`
--> sputnik-nft-staking/src/lib.rs:151:33
|
151 | ext_non_fungible_token::nft_transfer(sender_id.clone(), token_id.clone(), 0, None,
| ^^^^^^^^^^^^ not found in `ext_non_fungible_token`
Do you have any ideas of how to properly use the macro?