Explorar el Código

token-2022: Add compatibility test for instructions (#3106)

Jon Cinque hace 3 años
padre
commit
ac6d815299
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      program/src/instruction.rs

+ 1 - 1
program/src/instruction.rs

@@ -1392,7 +1392,7 @@ pub fn get_account_data_size(
 
     Ok(Instruction {
         program_id: *token_program_id,
-        accounts: vec![AccountMeta::new(*mint_pubkey, false)],
+        accounts: vec![AccountMeta::new_readonly(*mint_pubkey, false)],
         data: TokenInstruction::GetAccountDataSize.pack(),
     })
 }