Explorar o código

lang: Change entrypoint visibility (#510)

Kirill Fomichev %!s(int64=4) %!d(string=hai) anos
pai
achega
5ef708e39b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");