set_lamports() (#16921)
This commit is contained in:
committed by
GitHub
parent
8dc15f727c
commit
a7070a5ca7
@ -915,7 +915,9 @@ impl MessageProcessor {
|
||||
);
|
||||
return Err(InstructionError::InvalidRealloc);
|
||||
}
|
||||
dst_keyed_account.try_account_ref_mut()?.lamports = src_keyed_account.lamports;
|
||||
dst_keyed_account
|
||||
.try_account_ref_mut()?
|
||||
.set_lamports(src_keyed_account.lamports());
|
||||
dst_keyed_account
|
||||
.try_account_ref_mut()?
|
||||
.set_owner(*src_keyed_account.owner());
|
||||
|
Reference in New Issue
Block a user