mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
upgrade to steel v3
This commit is contained in:
@@ -77,7 +77,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
|
||||
bus_7_info,
|
||||
];
|
||||
for i in 0..BUS_COUNT {
|
||||
create_account::<Bus>(
|
||||
create_program_account::<Bus>(
|
||||
bus_infos[i],
|
||||
system_program,
|
||||
signer_info,
|
||||
@@ -92,7 +92,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
|
||||
}
|
||||
|
||||
// Initialize config.
|
||||
create_account::<Config>(
|
||||
create_program_account::<Config>(
|
||||
config_info,
|
||||
system_program,
|
||||
signer_info,
|
||||
@@ -105,7 +105,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
|
||||
config.min_difficulty = INITIAL_MIN_DIFFICULTY as u64;
|
||||
|
||||
// Initialize treasury.
|
||||
create_account::<Treasury>(
|
||||
create_program_account::<Treasury>(
|
||||
treasury_info,
|
||||
system_program,
|
||||
signer_info,
|
||||
|
||||
@@ -22,7 +22,7 @@ pub fn process_open(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
|
||||
slot_hashes_info.is_sysvar(&sysvar::slot_hashes::ID)?;
|
||||
|
||||
// Initialize proof.
|
||||
create_account::<Proof>(
|
||||
create_program_account::<Proof>(
|
||||
proof_info,
|
||||
system_program,
|
||||
payer_info,
|
||||
|
||||
Reference in New Issue
Block a user