Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error Occurs When Emitting Event In VAnchor Contract #49

Open
dharjeezy opened this issue Jul 5, 2022 · 0 comments
Open

[BUG] Error Occurs When Emitting Event In VAnchor Contract #49

dharjeezy opened this issue Jul 5, 2022 · 0 comments
Labels

Comments

@dharjeezy
Copy link
Contributor

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Not Started 🕧
Development

No branches or pull requests

2 participants