我正在为 NEAR 区块链编写一个智能合约承诺接口。
我有以下界面:
#[ext_contract(token_receiver)]
pub trait ExtTokenReceiver {
fn process_token_received(&self, sender_id: AccountId, amount: Balance, message: [u8]) -> Option<String>;
}
但是,这失败并出现以下错误:
error: Unsupported argument type.
--> src/token.rs:32:1
|
32 | #[ext_contract(token_receiver)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
- 如何调试近绑定宏
Unsupported argument type
在这种情况下是什么- 如何修复我的界面