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

Problem: missing json rpc for eth_resend #675 #684

Merged
merged 4 commits into from
Oct 20, 2021

Conversation

leejw51crypto
Copy link
Contributor

Solution: add max tx fee check for eth_resend

if cap == 0 {
return nil
}
feeEth := new(big.Float).Quo(new(big.Float).SetInt(new(big.Int).Mul(gasPrice, new(big.Int).SetUint64(gas))), new(big.Float).SetInt(big.NewInt(params.Ether)))
Copy link
Contributor

Choose a reason for hiding this comment

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

can we split this line? it's really hard to read

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

rpc/ethereum/namespaces/eth/api.go Show resolved Hide resolved
rpc/ethereum/namespaces/eth/api.go Outdated Show resolved Hide resolved
server/start.go Outdated Show resolved Hide resolved
@leejw51crypto
Copy link
Contributor Author

leejw51crypto commented Oct 20, 2021

modified

add unit test

restore

Update server/start.go

thanks~

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

tidy up checkTxFee

change comments
rpc/ethereum/namespaces/eth/api.go Outdated Show resolved Hide resolved
rpc/ethereum/namespaces/eth/api.go Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 20, 2021

Codecov Report

Merging #684 (9b74595) into main (1000461) will increase coverage by 0.16%.
The diff coverage is n/a.

❗ Current head 9b74595 differs from pull request most recent head ad4ba87. Consider uploading reports for the commit ad4ba87 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #684      +/-   ##
==========================================
+ Coverage   56.83%   57.00%   +0.16%     
==========================================
  Files          64       63       -1     
  Lines        5602     5566      -36     
==========================================
- Hits         3184     3173      -11     
+ Misses       2251     2232      -19     
+ Partials      167      161       -6     
Impacted Files Coverage Δ
server/config/config.go 21.60% <ø> (ø)
x/evm/types/compiled_contract.go

@fedekunze fedekunze enabled auto-merge (squash) October 20, 2021 19:11
@fedekunze fedekunze added the C:JSON-RPC JSON-RPC client label Oct 20, 2021
@fedekunze fedekunze merged commit f70e4c1 into evmos:main Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C:JSON-RPC JSON-RPC client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants