From 719abe5973ac7545a5b0679d328e17b2fbae120a Mon Sep 17 00:00:00 2001 From: Maximilian Schneider Date: Wed, 6 Nov 2024 22:29:28 +0100 Subject: [PATCH] fix broken test --- programs/autobahn-executor/src/token.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/autobahn-executor/src/token.rs b/programs/autobahn-executor/src/token.rs index 33efaa8..40c535e 100644 --- a/programs/autobahn-executor/src/token.rs +++ b/programs/autobahn-executor/src/token.rs @@ -61,7 +61,7 @@ pub fn intialize<'a>( account: &AccountInfo<'a>, seeds: &[&[u8]], ) -> Result<(), ProgramError> { - let space = match *account.owner { + let space = match *token_program.key { spl_token::ID => Ok(spl_token::state::Account::LEN), spl_token_2022::ID => { let mint_data = mint.data.borrow(); @@ -82,7 +82,7 @@ pub fn intialize<'a>( payer, &Rent::get()?, space, - account.owner, + token_program.key, system_program, account, seeds,