account.owner = X -> account.set_owner(X) (#16754)

This commit is contained in:
Jeff Washington (jwash)
2021-04-23 12:34:22 -05:00
committed by GitHub
parent 63436cc2bf
commit fb0b76c1f3
7 changed files with 23 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
use log::*;
use solana_sdk::{
account::{AccountSharedData, ReadableAccount},
account::{AccountSharedData, ReadableAccount, WritableAccount},
account_utils::StateMut,
ic_msg,
instruction::InstructionError,
@@ -126,7 +126,7 @@ fn assign(
return Err(SystemError::InvalidProgramId.into());
}
account.owner = *owner;
account.set_owner(*owner);
Ok(())
}