Getting this error while trying to build an Ink! contract with a message accepting a reference argument
|
95 | pub fn some_message(&self, account_id: &AccountId) -> bool {
| ^ expected named lifetime parameter
|
help: consider introducing a named lifetime parameter
Adding a named lifetime parameter (as suggested by compiler) doesn't help either:
error: ink! messages must not be generic
--> /home/greez/dev/polkadot/ink/examples/is-contract/lib.rs:95:29
|
95 | pub fn some_message<'a>(&self, account_id: &'a AccountId) -> bool {
| ^^
error: could not compile `is_contract` due to previous error