You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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 {}
The text was updated successfully, but these errors were encountered:
#1462 introduced
Result
as a replacement ofProgramResult
. But theanchor init
template is not updated according to that change. It still spits out the following codeThe text was updated successfully, but these errors were encountered: