Ensure deposit uses correct list type

This commit is contained in:
Paul Hauner 2019-04-17 11:57:34 +10:00
parent 10eeced227
commit ea8d5a3db9
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
use super::{DepositData, Hash256};
use super::{DepositData, Hash256, TreeHashVector};
use crate::test_utils::TestRandom;
use rand::RngCore;
use serde_derive::{Deserialize, Serialize};
@ -11,7 +11,7 @@ use tree_hash_derive::TreeHash;
/// Spec v0.5.0
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Encode, Decode, TreeHash, TestRandom)]
pub struct Deposit {
pub proof: Vec<Hash256>,
pub proof: TreeHashVector<Hash256>,
pub index: u64,
pub deposit_data: DepositData,
}

View File

@ -12,7 +12,7 @@ impl TestingDepositBuilder {
/// Instantiates a new builder.
pub fn new(pubkey: PublicKey, amount: u64) -> Self {
let deposit = Deposit {
proof: vec![],
proof: vec![].into(),
index: 0,
deposit_data: DepositData {
amount,