mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-18 23:16:48 +00:00
discriminator
This commit is contained in:
@@ -91,7 +91,7 @@ async fn test_initialize() {
|
||||
let bus_account = banks.get_account(bus_pdas[i].0).await.unwrap().unwrap();
|
||||
assert_eq!(bus_account.owner, ore::id());
|
||||
let bus = Bus::try_from_bytes(&bus_account.data).unwrap();
|
||||
assert_eq!(bus.bump as u8, bus_pdas[i].1);
|
||||
// assert_eq!(bus.bump as u8, bus_pdas[i].1);
|
||||
assert_eq!(bus.id as u8, i as u8);
|
||||
assert_eq!(bus.available_rewards, 0);
|
||||
println!(
|
||||
@@ -128,6 +128,12 @@ async fn test_initialize() {
|
||||
assert_eq!(mint.decimals, ore::TOKEN_DECIMALS);
|
||||
assert_eq!(mint.is_initialized, true);
|
||||
assert_eq!(mint.freeze_authority, COption::None);
|
||||
println!(
|
||||
"Mint {:?} {:?} {:?}",
|
||||
mint_pda.0,
|
||||
mint_account,
|
||||
bs64::encode(&mint_account.data)
|
||||
);
|
||||
|
||||
// Test treasury token state
|
||||
let treasury_tokens_account = banks
|
||||
@@ -145,6 +151,12 @@ async fn test_initialize() {
|
||||
assert_eq!(treasury_tokens.is_native, COption::None);
|
||||
assert_eq!(treasury_tokens.delegated_amount, 0);
|
||||
assert_eq!(treasury_tokens.close_authority, COption::None);
|
||||
println!(
|
||||
"Treasury tokens {:?} {:?} {:?}",
|
||||
treasury_tokens_address,
|
||||
treasury_tokens_account,
|
||||
bs64::encode(&treasury_tokens_account.data)
|
||||
);
|
||||
|
||||
// assert!(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user