Skip to content

Commit 7972065

Browse files
pipermerriamralexstokes
authored andcommitted
Use eth_utils for cytoolz import.
1 parent 3fd91a1 commit 7972065

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,
@@ -843,15 +842,15 @@ def _corrupt_signature(params, fork_data):
843842
)
844843
corrupt_signature = bls.sign(message, privkey, domain)
845844

846-
return cytoolz.assoc(params, "aggregate_signature", corrupt_signature)
845+
return assoc(params, "aggregate_signature", corrupt_signature)
847846

848847

849848
def _corrupt_vote_count(params):
850849
key = "custody_bit_0_indices"
851850
for i in itertools.count():
852851
if i not in params[key]:
853852
new_vote_count = params[key] + [i]
854-
return cytoolz.assoc(
853+
return assoc(
855854
params,
856855
key,
857856
new_vote_count,

0 commit comments

Comments
 (0)