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

fix dynamic link for wasmer-type 2.2.1 #260

Closed
loloicci opened this issue Dec 20, 2022 · 1 comment
Closed

fix dynamic link for wasmer-type 2.2.1 #260

loloicci opened this issue Dec 20, 2022 · 1 comment
Assignees

Comments

@loloicci
Copy link
Contributor

If we use wasmer-type 2.2.1 with dynamic_link macro following error is issued

error[E0308]: mismatched types
  --> src/contract.rs:16:1
   |
16 | #[dynamic_link(NumberContract)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected slice, found struct `std::vec::Vec`                                    
   |
   = note: expected reference `&[wasmer_types::types::ExportType<wasmer_types::types::FunctionType>]`          
              found reference `&std::vec::Vec<ExportType<FunctionType>>`
   = note: this error originates in the attribute macro `dynamic_link` (in Nightly builds, run with -Z macro-backtrace for more info)
@loloicci
Copy link
Contributor Author

solved via #261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant