@@ -51,6 +51,9 @@ declare_id!("94U5AHQMKkV5txNJ17QPXWoh474PheGou6cNP2FEuL1d");
5151#[ cfg( not( feature = "dev" ) ) ]
5252declare_id ! ( "ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis" ) ;
5353
54+ /// Prefix used for outbounds message hashes.
55+ pub const ZETACHAIN_PREFIX : & [ u8 ] = b"ZETACHAIN" ;
56+
5457#[ repr( C ) ]
5558#[ derive( Clone , Debug , PartialEq ) ]
5659pub enum CallableInstruction {
@@ -716,7 +719,7 @@ pub mod gateway {
716719 }
717720
718721 /// Returns true to indicate program has been upgraded
719- pub fn upgraded ( ctx : Context < Upgrade > ) -> Result < bool > {
722+ pub fn upgraded ( _ctx : Context < Upgrade > ) -> Result < bool > {
720723 msg ! ( "Program has been upgraded!" ) ;
721724 Ok ( true )
722725 }
@@ -951,12 +954,10 @@ fn prepare_account_metas(
951954 // Gateway pda can be added as not writable
952955 if * account_key == pda. key ( ) {
953956 account_metas. push ( AccountMeta :: new_readonly ( * account_key, false ) ) ;
957+ } else if account_info. is_writable {
958+ account_metas. push ( AccountMeta :: new ( * account_key, false ) ) ;
954959 } else {
955- if account_info. is_writable {
956- account_metas. push ( AccountMeta :: new ( * account_key, false ) ) ;
957- } else {
958- account_metas. push ( AccountMeta :: new_readonly ( * account_key, false ) ) ;
959- }
960+ account_metas. push ( AccountMeta :: new_readonly ( * account_key, false ) ) ;
960961 }
961962 }
962963
0 commit comments