From a5a2e29dfe8a424ea53cf0b9203b58463046a24b Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 22 Jun 2019 22:15:42 +0200 Subject: [PATCH] remove unnecessary argument, typing is based on values fully now --- test_generators/ssz_static/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_generators/ssz_static/main.py b/test_generators/ssz_static/main.py index 9d9af8c5e..0dfdebf5d 100644 --- a/test_generators/ssz_static/main.py +++ b/test_generators/ssz_static/main.py @@ -21,8 +21,8 @@ MAX_LIST_LENGTH = 10 @to_dict -def create_test_case_contents(value, typ): - yield "value", encode.encode(value, typ) +def create_test_case_contents(value): + yield "value", encode.encode(value) yield "serialized", '0x' + serialize(value).hex() yield "root", '0x' + hash_tree_root(value).hex() if hasattr(value, "signature"): @@ -32,7 +32,7 @@ def create_test_case_contents(value, typ): @to_dict def create_test_case(rng: Random, name: str, typ, mode: random_value.RandomizationMode, chaos: bool): value = random_value.get_random_ssz_object(rng, typ, MAX_BYTES_LENGTH, MAX_LIST_LENGTH, mode, chaos) - yield name, create_test_case_contents(value, typ) + yield name, create_test_case_contents(value) def get_spec_ssz_types():