Selaa lähdekoodia

system: Fix signer flag (#182)

Fix signer flag
Fernando Otero 5 kuukautta sitten
vanhempi
sitoutus
5fcc9ff1c0

+ 1 - 1
programs/system/src/instructions/allocate_with_seed.rs

@@ -43,7 +43,7 @@ impl AllocateWithSeed<'_, '_, '_> {
     pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
         // account metadata
         let account_metas: [AccountMeta; 2] = [
-            AccountMeta::writable_signer(self.account.key()),
+            AccountMeta::writable(self.account.key()),
             AccountMeta::readonly_signer(self.base.key()),
         ];
 

+ 1 - 1
programs/system/src/instructions/assign_with_seed.rs

@@ -39,7 +39,7 @@ impl AssignWithSeed<'_, '_, '_> {
     pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
         // account metadata
         let account_metas: [AccountMeta; 2] = [
-            AccountMeta::writable_signer(self.account.key()),
+            AccountMeta::writable(self.account.key()),
             AccountMeta::readonly_signer(self.base.key()),
         ];