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

Anchor Init template still uses ProgramResult instead of the newer Result #1526

Closed
skulltech opened this issue Feb 28, 2022 · 2 comments
Closed

Comments

@skulltech
Copy link

#1462 introduced Result as a replacement of ProgramResult. But the anchor init template is not updated according to that change. It still spits out the following code

use anchor_lang::prelude::*;

declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");

#[program]
pub mod coolapp {
    use super::*;
    pub fn initialize(ctx: Context<Initialize>) -> ProgramResult {
        Ok(())
    }
}

#[derive(Accounts)]
pub struct Initialize {}
@tomlinton
Copy link
Contributor

This was fixed in 99403bf

@paul-schaaf
Copy link
Contributor

paul-schaaf commented Feb 28, 2022

Thanks for reporting this! fix is already merged and coming in next release

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

No branches or pull requests

3 participants