Przeglądaj źródła

lang: Change entrypoint visibility (#510)

Kirill Fomichev 4 lat temu
rodzic
commit
5ef708e39b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lang/syn/src/codegen/program/entry.rs

+ 1 - 1
lang/syn/src/codegen/program/entry.rs

@@ -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");