Skip to content

Commit

Permalink
Problem: eth_sendTransaction is not tested
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Sep 9, 2022
1 parent 35d2494 commit b0099d1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ def test_basic(cluster):
assert w3.eth.chain_id == 777


def test_send_transaction(cluster):
"test eth_sendTransaction api"
w3 = cluster.w3
txhash = w3.eth.send_transaction(
{
"from": ADDRS["validator"],
"to": ADDRS["community"],
"value": 1000,
}
)
receipt = w3.eth.wait_for_transaction_receipt(txhash)
assert receipt.status == 1


def test_events(cluster, suspend_capture):
w3 = cluster.w3
erc20 = deploy_contract(
Expand Down

0 comments on commit b0099d1

Please sign in to comment.