-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
view() function cannot decode imported / tupple struct #3220
Comments
These are not related to the
|
Could you assist me with that example of wrapping a non-Anchor external type to include it in the IDL? I don't understand where I should do it. The things happen at |
Is it available for anchor 0.29.0 - we use that one? |
It was somewhat supported in |
Hello there.
We are building Bakstag - Omnichain OTC Market protocol.
We are using anchor lang as the main framework for developing Solana contracts.
Currently, we are experiencing the following issues:
1. The
.view()
method builder cannot decode the result if the function returns the external type (imported from the other library).Here is an example
If we are to use
.view()
as a read function, it throws the following error:If we are to add
MessagingFee
implicitly so that it appears in IDL, the problem will be gone.2. There is another issue:
If we are to use
.view()
for the function which returns tuple type:it again throws with:
no matter that both types are defined implicitly
The text was updated successfully, but these errors were encountered: