Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

imp (evm): make missing key error message during SendTransaction more verbose #1563

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

MalteHerrmann
Copy link
Contributor

This minor change improves the verbosity of the error, that occurs during a call to the eth_sendTransaction endpoint, should the sender address not be found in the used keyring.

Since Go-Ethereum is (at least to my knowledge) not concerned with using different keyring backends etc. as on Cosmos, the raised error is not too verbose. IMO this is a small improvement for developer experience.

@MalteHerrmann MalteHerrmann requested a review from a team as a code owner December 19, 2022 17:25
@MalteHerrmann MalteHerrmann requested review from GAtom22 and 4rgon4ut and removed request for a team December 19, 2022 17:25
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Merging #1563 (cddf2d4) into main (9663ec3) will not change coverage.
The diff coverage is 100.00%.

❗ Current head cddf2d4 differs from pull request most recent head d73e114. Consider uploading reports for the commit d73e114 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1563   +/-   ##
=======================================
  Coverage   68.63%   68.63%           
=======================================
  Files         103      103           
  Lines        9946     9946           
=======================================
  Hits         6826     6826           
  Misses       2737     2737           
  Partials      383      383           
Impacted Files Coverage Δ
rpc/backend/sign_tx.go 59.80% <100.00%> (ø)

Copy link
Contributor

@4rgon4ut 4rgon4ut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@4rgon4ut 4rgon4ut enabled auto-merge (squash) December 20, 2022 21:52
@4rgon4ut 4rgon4ut merged commit 78e6df2 into main Dec 20, 2022
@4rgon4ut 4rgon4ut deleted the malte/improve-error-verbosity branch December 20, 2022 21:58
@danburck
Copy link
Contributor

@MalteHerrmann @4rgon4ut reminder for next PR, always include a changelog

@MalteHerrmann MalteHerrmann mentioned this pull request Dec 22, 2022
fedekunze added a commit that referenced this pull request Dec 22, 2022
* build(deps): bump github.com/cosmos/cosmos-sdk from 0.46.6 to 0.46.7 (#1551)

Bumps [github.com/cosmos/cosmos-sdk](https://github.com/cosmos/cosmos-sdk) from 0.46.6 to 0.46.7.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/main/CHANGELOG.md)
- [Commits](cosmos/cosmos-sdk@v0.46.6...v0.46.7)

---
updated-dependencies:
- dependency-name: github.com/cosmos/cosmos-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/cosmos/ibc-go/v5 from 5.1.0 to 5.2.0 (#1564)

Bumps [github.com/cosmos/ibc-go/v5](https://github.com/cosmos/ibc-go) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/cosmos/ibc-go/releases)
- [Changelog](https://github.com/cosmos/ibc-go/blob/v5.2.0/CHANGELOG.md)
- [Commits](cosmos/ibc-go@v5.1.0...v5.2.0)

---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* make missing key error message during SendTransaction more verbose (#1563)

Co-authored-by: 4rgon4ut <[email protected]>

* debug(app): add flag to disable optimized build for remote debugging (#1549)

Co-authored-by: MalteHerrmann <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>

* Problem: personal_newAccount don't work (#1561)

fix the internal parameter.

* fix(ante): fix reCheckTx gas wanted (#1566)

* fix(abci): fix reCheckTx gas wanted'

* fix(ante): add changelog entry

* fix(cli): fix Ledger signature algorithm verification (#1550)

* fix: update Ledger default algorithm to `EthSecp256k1`

* fix ledger signing algo validation

* changelog

Co-authored-by: Freddy Caceres <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>

* update changelog

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 4rgon4ut <[email protected]>
Co-authored-by: Tomas Guerra <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
Co-authored-by: yihuang <[email protected]>
Co-authored-by: Austin Chandra <[email protected]>
Co-authored-by: Freddy Caceres <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants