Rename userdata to data (#3282)
* Rename userdata to data Instead of saying "userdata", which is ambiguous and imprecise, say "instruction data" or "account data". Also, add `ProgramError::InvalidInstructionData` Fixes #2761
This commit is contained in:
@@ -70,11 +70,7 @@ fn test_wallet_deploy_program() {
|
||||
file.read_to_end(&mut elf).unwrap();
|
||||
|
||||
assert_eq!(
|
||||
account_info_obj
|
||||
.get("userdata")
|
||||
.unwrap()
|
||||
.as_array()
|
||||
.unwrap(),
|
||||
account_info_obj.get("data").unwrap().as_array().unwrap(),
|
||||
&elf
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user