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
@@ -21,9 +21,9 @@ import (
|
||||
// SendTransaction sends transaction based on received args using Node's key to sign it
|
||||
func (b *Backend) SendTransaction(args evmtypes.TransactionArgs) (common.Hash, error) {
|
||||
// Look up the wallet containing the requested signer
|
||||
_, err := b.clientCtx.Keyring.KeyByAddress(sdk.AccAddress(args.From.Bytes()))
|
||||
_, err := b.clientCtx.Keyring.KeyByAddress(sdk.AccAddress(args.GetFrom().Bytes()))
|
||||
if err != nil {
|
||||
b.logger.Error("failed to find key in keyring", "address", args.From, "error", err.Error())
|
||||
b.logger.Error("failed to find key in keyring", "address", args.GetFrom(), "error", err.Error())
|
||||
return common.Hash{}, fmt.Errorf("%s; %s", keystore.ErrNoMatch, err.Error())
|
||||
}
|
||||
|
||||
|
||||
@@ -94,6 +94,7 @@ func (s *websocketsServer) Start() {
|
||||
|
||||
go func() {
|
||||
var err error
|
||||
/* #nosec G114 -- http functions have no support for timeouts */
|
||||
if s.certFile == "" || s.keyFile == "" {
|
||||
err = http.ListenAndServe(s.wsAddr, ws)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user