From 0424fab024a8580cd486d0708ca79d0ae7ffb889 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 30 May 2019 13:39:42 +0800 Subject: [PATCH] Use `eth2spec.utils.hash_function.hash` --- deposit_contract/tests/contracts/test_deposit.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/deposit_contract/tests/contracts/test_deposit.py b/deposit_contract/tests/contracts/test_deposit.py index 7c5b85907..3d0b6f845 100644 --- a/deposit_contract/tests/contracts/test_deposit.py +++ b/deposit_contract/tests/contracts/test_deposit.py @@ -13,17 +13,15 @@ from tests.contracts.conftest import ( FULL_DEPOSIT_AMOUNT, MIN_DEPOSIT_AMOUNT, ) + +from eth2spec.phase0.spec import ( + DepositData, +) +from eth2spec.utils.hash_function import hash from eth2spec.utils.minimal_ssz import ( SSZType, hash_tree_root, ) -from eth2spec.phase0.spec import ( - DepositData, -) - - -def hash(data): - return sha256(data).digest() def compute_merkle_root(leaf_nodes):