Skip to content

Commit c87eb38

Browse files
authored
Use eth_utils for cytoolz import.
1 parent 98824a2 commit c87eb38

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/beacon/test_helpers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import pytest
44
import random
55

6-
import cytoolz
7-
86
from hypothesis import (
97
given,
108
strategies as st,
@@ -14,6 +12,7 @@
1412
denoms,
1513
ValidationError,
1614
)
15+
from eth_utils.toolz import assoc
1716

1817
from eth.constants import (
1918
ZERO_HASH32,
@@ -868,15 +867,15 @@ def _corrupt_signature(params, fork_data):
868867
)
869868
corrupt_signature = bls.sign(message, privkey, domain)
870869

871-
return cytoolz.assoc(params, "aggregate_signature", corrupt_signature)
870+
return assoc(params, "aggregate_signature", corrupt_signature)
872871

873872

874873
def _corrupt_vote_count(params):
875874
key = "custody_bit_0_indices"
876875
for i in itertools.count():
877876
if i not in params[key]:
878877
new_vote_count = params[key] + [i]
879-
return cytoolz.assoc(
878+
return assoc(
880879
params,
881880
key,
882881
new_vote_count,

0 commit comments

Comments
 (0)