Skip to content

Commit

Permalink
Use eth2spec.utils.hash_function.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed May 30, 2019
1 parent c277703 commit 0424fab
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions deposit_contract/tests/contracts/test_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@
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):
Expand Down

0 comments on commit 0424fab

Please sign in to comment.