Ensure deposit uses correct list type
This commit is contained in:
parent
10eeced227
commit
ea8d5a3db9
@ -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,
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user