From 075978b9065593f37fbc00e3218cb71fcc5a7507 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 13 May 2022 18:51:50 +0800 Subject: [PATCH] misc cleanup --- tests/rpc/rpc_test.go | 13 +------------ types/gasmeter.go | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/rpc/rpc_test.go b/tests/rpc/rpc_test.go index 302c3513..9af82ceb 100644 --- a/tests/rpc/rpc_test.go +++ b/tests/rpc/rpc_test.go @@ -301,17 +301,6 @@ func deployTestContract(t *testing.T) (hexutil.Bytes, map[string]interface{}) { return hash, receipt } -func getTransactionReceipt(t *testing.T, hash hexutil.Bytes) map[string]interface{} { - param := []string{hash.String()} - rpcRes := call(t, "eth_getTransactionReceipt", param) - - receipt := make(map[string]interface{}) - err := json.Unmarshal(rpcRes.Result, &receipt) - require.NoError(t, err) - - return receipt -} - func waitForReceipt(t *testing.T, hash hexutil.Bytes) map[string]interface{} { timeout := time.After(12 * time.Second) ticker := time.Tick(500 * time.Millisecond) @@ -321,7 +310,7 @@ func waitForReceipt(t *testing.T, hash hexutil.Bytes) map[string]interface{} { case <-timeout: return nil case <-ticker: - receipt := getTransactionReceipt(t, hash) + receipt := GetTransactionReceipt(t, hash) if receipt != nil { return receipt } diff --git a/types/gasmeter.go b/types/gasmeter.go index 751de082..65c29c62 100644 --- a/types/gasmeter.go +++ b/types/gasmeter.go @@ -75,7 +75,7 @@ func (g *infiniteGasMeterWithLimit) ConsumeGas(amount sdk.Gas, descriptor string // RefundGas will deduct the given amount from the gas consumed. If the amount is greater than the // gas consumed, the function will panic. // -// Use case: This functionality enables refunding gas to the trasaction or block gas pools so that +// Use case: This functionality enables refunding gas to the transaction or block gas pools so that // EVM-compatible chains can fully support the go-ethereum StateDb interface. // See https://github.com/cosmos/cosmos-sdk/pull/9403 for reference. func (g *infiniteGasMeterWithLimit) RefundGas(amount sdk.Gas, descriptor string) {