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: replace string in declare_id with ID from system_program #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BukiOffor
Copy link

The string in the declare_id declare_id!("<UPDATE HERE>"); does not pass the base58 encoding check, there by does not allow a successful build with anchor. if replaced with anchor_lang::system_program::ID, the program compiles and builds successfully.

Copy link

@SubhamPaul21 SubhamPaul21 left a comment

Choose a reason for hiding this comment

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

image

@BukiOffor is right, if we don't replace declare_id!(""); with declare_id!(anchor_lang::system_program::ID); The build won't successfully occur.

@Jonniie
Copy link

Jonniie commented Mar 28, 2024

This works, thank you so much

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.

3 participants