Skip to content

Commit

Permalink
fix: rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Nov 26, 2024
1 parent 77553a0 commit 4b84fd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions serve/methods/gas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestGetGasPricesByTxResults_Transactions(t *testing.T) {
{
"single transaction",
[]*types.TxResult{
makeTxResultHasGasFee(1, "ugnot"),
makeTxResultWithGasFee(1, "ugnot"),
},
[]GasPrice{
{
Expand All @@ -65,10 +65,10 @@ func TestGetGasPricesByTxResults_Transactions(t *testing.T) {
{
"variable amount",
[]*types.TxResult{
makeTxResultHasGasFee(1, "ugnot"),
makeTxResultHasGasFee(2, "ugnot"),
makeTxResultHasGasFee(3, "ugnot"),
makeTxResultHasGasFee(4, "ugnot"),
makeTxResultWithGasFee(1, "ugnot"),
makeTxResultWithGasFee(2, "ugnot"),
makeTxResultWithGasFee(3, "ugnot"),
makeTxResultWithGasFee(4, "ugnot"),
},
[]GasPrice{
{
Expand All @@ -82,10 +82,10 @@ func TestGetGasPricesByTxResults_Transactions(t *testing.T) {
{
"variable amounts and coins",
[]*types.TxResult{
makeTxResultHasGasFee(1, "ugnot"),
makeTxResultHasGasFee(2, "ugnot"),
makeTxResultHasGasFee(3, "uatom"),
makeTxResultHasGasFee(4, "uatom"),
makeTxResultWithGasFee(1, "ugnot"),
makeTxResultWithGasFee(2, "ugnot"),
makeTxResultWithGasFee(3, "uatom"),
makeTxResultWithGasFee(4, "uatom"),
},
[]GasPrice{
{
Expand Down
2 changes: 1 addition & 1 deletion serve/methods/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/gnolang/gno/tm2/pkg/std"
)

func makeTxResultHasGasFee(gasFeeAmount int64, gasFeeDenom string) *types.TxResult {
func makeTxResultWithGasFee(gasFeeAmount int64, gasFeeDenom string) *types.TxResult {
tx := std.Tx{
Fee: std.Fee{
GasFee: std.Coin{
Expand Down

0 comments on commit 4b84fd2

Please sign in to comment.