Skip to content

Commit 57ff10c

Browse files
committed
Add tx params to test
1 parent 15064e2 commit 57ff10c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web3/_utils/module_testing/eth_module.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ def test_eth_signTransaction(self, web3, unlocked_account, geth_signed_tx=None):
212212
assert result['raw'] == geth_signed_tx
213213
else:
214214
assert result['raw'] == actual.rawTransaction
215+
assert result['tx']['to'] == txn_params['to']
216+
assert result['tx']['value'] == txn_params['value']
217+
assert result['tx']['gas'] == txn_params['gas']
218+
assert result['tx']['gasPrice'] == txn_params['gasPrice']
219+
assert result['tx']['nonce'] == txn_params['nonce']
215220

216221
def test_eth_sendTransaction_addr_checksum_required(self, web3, unlocked_account):
217222
non_checksum_addr = unlocked_account.lower()

0 commit comments

Comments
 (0)