Purge remaining last_id (now called block_hash)

This commit is contained in:
Michael Vines
2019-03-02 10:09:09 -08:00
committed by Greg Fitzgerald
parent 2bfad87a5f
commit 258cf21416
39 changed files with 369 additions and 369 deletions

View File

@@ -36,13 +36,13 @@ fn test_rpc_send_tx() {
.send()
.unwrap();
let json: Value = serde_json::from_str(&response.text().unwrap()).unwrap();
let last_id_vec = bs58::decode(json["result"].as_str().unwrap())
let block_hash_vec = bs58::decode(json["result"].as_str().unwrap())
.into_vec()
.unwrap();
let last_id = Hash::new(&last_id_vec);
let block_hash = Hash::new(&block_hash_vec);
info!("last_id: {:?}", last_id);
let tx = SystemTransaction::new_move(&alice, bob_pubkey, 20, last_id, 0);
info!("block_hash: {:?}", block_hash);
let tx = SystemTransaction::new_move(&alice, bob_pubkey, 20, block_hash, 0);
let serial_tx = serialize(&tx).unwrap();
let client = reqwest::Client::new();