pub fn add_account_with_base64_data(
        &mut self,
        address: Pubkey,
        lamports: u64,
        owner: Pubkey,
        data_base64: &str,
    ) {
        self.add_account(
            address,
            Account {
                lamports,
                data: base64::decode(data_base64)
                    .unwrap_or_else(|err| panic!("Failed to base64 decode: {}", err)),
                owner,
                executable: false,
                rent_epoch: 0,
            },
        );
    }
/// Add an account to the test environment with the account data in the provided as a base 64
/// string
Add an account to the test environment with the account data in the provided as a base 64
string
Add an account to the test environment with the account data in the provided as a base 64 string
pub fn add_account_with_base64_data(
        &mut self,
        address: Pubkey,
        lamports: u64,
        owner: Pubkey,
        data_base64: &str,
    ) {
        self.add_account(
            address,
            Account {
                lamports,
                data: base64::decode(data_base64)
                    .unwrap_or_else(|err| panic!("Failed to base64 decode: {}", err)),
                owner,
                executable: false,
                rent_epoch: 0,
            },
        );
    }
pub fn add_account_with_base64_data ( & mut self , address : Pubkey , lamports : u64 , owner : Pubkey , data_base64 : & str , ) { self . add_account ( address , Account { lamports , data : base64 :: decode ( data_base64 ) . unwrap_or_else ( | err | panic ! ( " " err ) ) , owner , executable : false , rent_epoch : 0 , } , ) ; }
Add an account to the test environment with the account data in the provided as a base 64
string
Add an account to the test environment with the account data in the provided as a base 64 string
&mut self
address
Pubkey
lamports
u64
owner
Pubkey
data_base64
&str