lang: Change entrypoint visibility (#510)
This commit is contained in:
parent
c5b61848c0
commit
5ef708e39b
|
@ -50,7 +50,7 @@ pub fn generate(program: &Program) -> proc_macro2::TokenStream {
|
|||
/// The `entry` function here, defines the standard entry to a Solana
|
||||
/// program, where execution begins.
|
||||
#[cfg(not(feature = "no-entrypoint"))]
|
||||
fn entry(program_id: &Pubkey, accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
pub fn entry(program_id: &Pubkey, accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
#[cfg(feature = "anchor-debug")]
|
||||
{
|
||||
msg!("anchor-debug is active");
|
||||
|
|
Loading…
Reference in New Issue