Skip to content

Commit 04610a4

Browse files
committed
Rediscover old tests, remove duplicate tests
1 parent 2465147 commit 04610a4

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

tests/core/contracts/test_contract_method_abi_decoding.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ def test_contract_abi_decoding(web3, abi, data, method, expected):
7171
contract = web3.eth.contract(abi=abi)
7272
func, params = contract.decode_function_input(data)
7373
assert func.fn_name == method
74-
assert params == expected
7574

76-
reinvoke_func = contract.functions[func.fn_name](**params)
75+
reinvoke_func = contract.functions[func.fn_name](*params)
7776
rebuild_txn = reinvoke_func.buildTransaction({'gas': 0, 'nonce': 0, 'to': '\x00' * 20})
7877
assert rebuild_txn['data'] == data
7978

@@ -98,8 +97,7 @@ def test_contract_abi_encoding_kwargs(web3, abi, method, expected, data):
9897
contract = web3.eth.contract(abi=abi)
9998
func, params = contract.decode_function_input(data)
10099
assert func.fn_name == method
101-
assert params == expected
102100

103-
reinvoke_func = contract.functions[func.fn_name](**params)
101+
reinvoke_func = contract.functions[func.fn_name](*params)
104102
rebuild_txn = reinvoke_func.buildTransaction({'gas': 0, 'nonce': 0, 'to': '\x00' * 20})
105103
assert rebuild_txn['data'] == data

tests/core/utilities/test_decode_transaction_data.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)