Skip to content

Conversation

@agusaldasoro
Copy link
Contributor

@agusaldasoro agusaldasoro commented May 20, 2025

Build contracts with latest version of anchor 0.31.0 running make build-contracts.

The go-bindings are not working right now, as a few changes need to be done.

@agusaldasoro agusaldasoro requested a review from jadepark-dev May 20, 2025 23:43
}

#[derive(AnchorSerialize, AnchorDeserialize, Clone, Debug)]
pub struct Ocr3ConfigInfoInput {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jadepark-dev Does this change make sense? I copied it from your branch, I'm not sure if I should do the same to all the structs that I had to remove the AnchorSerialize and AnchorDeserialize?

Copy link
Contributor

@jadepark-dev jadepark-dev May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, iirc it was only for Ocr3ConfigInfo. This could be a bug from Anchor. They changed AnchorSerialize, AnchorDeserialize to be implemented automatically from 0.30.x, but the compiler was complaining when it's used for input struct so I had to split the struct and give it those attributes.

But please keep in mind that the work was experimental, so it might have been fixed in a more recent version of Anchor or there might be a better pattern now!

@agusaldasoro agusaldasoro requested a review from toblich May 21, 2025 14:24
@github-actions
Copy link

Metric upgrade-anchor main
Coverage 70.9% 70.4%

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

Successfully merging this pull request may close these issues.

2 participants