Skip to content

fix: Fix bytes being converted incorrectly in declare_program!#2966

Merged
acheroncrypto merged 9 commits into
otter-sec:masterfrom
cryptopapi997:fix-bytes-conversion
May 15, 2024
Merged

fix: Fix bytes being converted incorrectly in declare_program!#2966
acheroncrypto merged 9 commits into
otter-sec:masterfrom
cryptopapi997:fix-bytes-conversion

Conversation

@cryptopapi997

Copy link
Copy Markdown
Contributor

declare_program! converts bytes in the idl to the type bytes in rust. This type doesn't exist, so we switch to converting it to a Vec<u8>

@vercel

vercel Bot commented May 13, 2024

Copy link
Copy Markdown

@cryptopapi997 is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@cryptopapi997 cryptopapi997 changed the title Fix bytes being converted incorrectly fix: Fix bytes being converted incorrectly in declare_program May 13, 2024
@cryptopapi997 cryptopapi997 changed the title fix: Fix bytes being converted incorrectly in declare_program fix: Fix bytes being converted incorrectly in declare_program! May 13, 2024
@acheroncrypto acheroncrypto added lang next Required for the next release fix Bug fix PR labels May 14, 2024
Comment thread lang/attribute/program/src/declare_program/common.rs Outdated

@acheroncrypto acheroncrypto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@acheroncrypto acheroncrypto merged commit e71a63c into otter-sec:master May 15, 2024
@cryptopapi997 cryptopapi997 deleted the fix-bytes-conversion branch May 15, 2024 07:52
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix PR lang next Required for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants