forked from cerc-io/laconicd-deprecated
eth_sendTransaction returns internal trace on missing param (#1284)
* added test, used get method for from param * gosec fixes * adding nosec v1 * added test to python tests, removed testing lines * fixing flake issues * test-unit-cover * changelog fix * changelog 2 * fix gomod2nix * integration tests Co-authored-by: Freddy Caceres <facs95@gmail.com>
This commit is contained in:
co-authored by
Freddy Caceres
parent
f9c74e239c
commit
1ea0cb31b7
@@ -323,6 +323,15 @@ def make_same_rpc_calls(rpc1, rpc2, method, params):
|
||||
assert res, err
|
||||
|
||||
|
||||
def test_incomplete_send_transaction(ethermint, geth):
|
||||
# Send ethereum tx with nothing in from field
|
||||
eth_rpc = ethermint.w3.provider
|
||||
geth_rpc = geth.w3.provider
|
||||
gas_price = ethermint.w3.eth.gas_price
|
||||
tx = {"from": "", "to": ADDRS["community"], "value": 0, "gasPrice": gas_price}
|
||||
make_same_rpc_calls(eth_rpc, geth_rpc, "eth_sendTransaction", [tx])
|
||||
|
||||
|
||||
def same_types(object_a, object_b):
|
||||
|
||||
if isinstance(object_a, dict):
|
||||
|
||||
Reference in New Issue
Block a user