Rename tokens to lamports in sdk/

This commit is contained in:
Michael Vines
2019-03-05 16:28:14 -08:00
parent bd237a2d6f
commit 53f09c44f3
33 changed files with 324 additions and 306 deletions

View File

@ -50,7 +50,10 @@ fn test_wallet_deploy_program() {
.make_rpc_request(1, RpcRequest::GetAccountInfo, Some(params))
.unwrap();
let account_info_obj = account_info.as_object().unwrap();
assert_eq!(account_info_obj.get("tokens").unwrap().as_u64().unwrap(), 1);
assert_eq!(
account_info_obj.get("lamports").unwrap().as_u64().unwrap(),
1
);
let owner_array = account_info.get("owner").unwrap();
assert_eq!(owner_array, &json!(bpf_loader::id()));
assert_eq!(