diff --git a/tests/test_ecosystem.py b/tests/test_ecosystem.py index 8631d90..d60672d 100644 --- a/tests/test_ecosystem.py +++ b/tests/test_ecosystem.py @@ -8,21 +8,21 @@ def test_gas_limit(fantom): # NOTE: None because we want to show the default is DYNAMIC -@pytest.mark.parametrize("type", (None, 2, "0x2")) -def test_create_transaction(fantom, type, eth_tester_provider): - tx = fantom.create_transaction(type=type) +@pytest.mark.parametrize("tx_type", (None, 2, "0x2")) +def test_create_transaction(fantom, tx_type, eth_tester_provider): + tx = fantom.create_transaction(type=tx_type) assert tx.type == TransactionType.DYNAMIC.value assert tx.gas_limit == eth_tester_provider.max_gas @pytest.mark.parametrize( - "type_", + "tx_type", ( TransactionType.STATIC.value, TransactionType.DYNAMIC.value, ), ) -def test_encode_transaction(type_, fantom, eth_tester_provider): +def test_encode_transaction(tx_type, fantom, eth_tester_provider): abi = MethodABI.parse_obj( { "type": "function", @@ -33,5 +33,5 @@ def test_encode_transaction(type_, fantom, eth_tester_provider): } ) address = "0x274b028b03A250cA03644E6c578D81f019eE1323" - actual = fantom.encode_transaction(address, abi, sender=address, type=type_) + actual = fantom.encode_transaction(address, abi, sender=address, type=tx_type) assert actual.gas_limit == eth_tester_provider.max_gas