forked from cerc-io/laconicd-deprecated
feemarket: change basefee to be a module param (#943)
* change basefee to a module params * add changelog and fix linter * change params type of basefee and remove default base fee * restaure event * clean code * fix proto * fix protos * fix logic * update rpc tests * fix comment Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
f21592ebfe
commit
bf54193669
@@ -565,7 +565,7 @@ func TestEth_EthResend(t *testing.T) {
|
||||
func TestEth_FeeHistory(t *testing.T) {
|
||||
params := make([]interface{}, 0)
|
||||
params = append(params, 4)
|
||||
params = append(params, "0x1c")
|
||||
params = append(params, "0xa")
|
||||
params = append(params, []int{25, 75})
|
||||
|
||||
rpcRes := call(t, "eth_feeHistory", params)
|
||||
@@ -577,7 +577,7 @@ func TestEth_FeeHistory(t *testing.T) {
|
||||
baseFeePerGas := info["baseFeePerGas"].([]interface{})
|
||||
gasUsedRatio := info["gasUsedRatio"].([]interface{})
|
||||
|
||||
require.Equal(t, info["oldestBlock"].(string), "0x18")
|
||||
require.Equal(t, info["oldestBlock"].(string), "0x6")
|
||||
require.Equal(t, 4, len(gasUsedRatio))
|
||||
require.Equal(t, 4, len(baseFeePerGas))
|
||||
require.Equal(t, 4, len(reward))
|
||||
|
||||
Reference in New Issue
Block a user