You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to implement event emission in the VAnchor Contract, I get this error:
error[E0284]: type annotations needed
--> contracts/vanchor/lib.rs:354:24
|
354 | self.env().emit_event(TransactDeposit {
| ^^^^^^^^^^ cannot infer type for type parameter `C` declared on the trait `EmitEvent`
|
= note: cannot satisfy `<_ as ink_lang::reflect::ContractEventBase>::Type == _`
This is actually due to the fact that the token_wrapper contract emits event too and is being called in the VAnchor contract which is also trying to emit events.
When I try to implement event emission in the
VAnchor
Contract, I get this error:This is actually due to the fact that the
token_wrapper
contract emits event too and is being called in theVAnchor
contract which is also trying to emit events.This is a cross-contract bug that has been raised in Substrate stack exchange
The issue is already opened in ink! here
The PR to fix this issue is being tracked here
The text was updated successfully, but these errors were encountered: