Closed acheroncrypto closed 1 week ago
Using address = <ACCOUNT>.<FIELD> does not compile with the current IDL generation as explained in https://github.com/coral-xyz/anchor/issues/2912.
address = <ACCOUNT>.<FIELD>
Skip including address field in the IDL if field access expression is being used with the address constraint.
address
address constraint
Note that using has_one should be preferred (like I mentioned in https://github.com/coral-xyz/anchor/issues/2912#issuecomment-2061172476) as it also supports automatic resolution.
has_one
Resolves https://github.com/coral-xyz/anchor/issues/2912
@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
Problem
Using
address = <ACCOUNT>.<FIELD>
does not compile with the current IDL generation as explained in https://github.com/coral-xyz/anchor/issues/2912.Summary of changes
Skip including
address
field in the IDL if field access expression is being used with theaddress constraint
.Note that using
has_one
should be preferred (like I mentioned in https://github.com/coral-xyz/anchor/issues/2912#issuecomment-2061172476) as it also supports automatic resolution.Resolves https://github.com/coral-xyz/anchor/issues/2912