* Deploy error is buffer is too small
* missing file
(cherry picked from commit de8331eeaf
)
# Conflicts:
# cli/tests/fixtures/noop.so
Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
@@ -2018,7 +2018,13 @@ fn complete_partial_program_init(
|
||||
return Err("Buffer account is already executable".into());
|
||||
}
|
||||
if account.owner != *loader_id && !system_program::check_id(&account.owner) {
|
||||
return Err("Buffer account is already owned by another account".into());
|
||||
return Err("Buffer account passed is already in use by another program".into());
|
||||
}
|
||||
if !account.data.is_empty() && account.data.len() < account_data_len {
|
||||
return Err(
|
||||
"Buffer account passed is not large enough, may have been for a different deploy?"
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
|
||||
if account.data.is_empty() && system_program::check_id(&account.owner) {
|
||||
|
Reference in New Issue
Block a user