Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some function names #2073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protocol/app/process/market_prices.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type UpdateMarketPricesTx struct {
msg *types.MsgUpdateMarketPrices
}

// DecodeAddPremiumVotesTx returns a new `UpdateMarketPricesTx` after validating the following:
// DecodeUpdateMarketPricesTx returns a new `UpdateMarketPricesTx` after validating the following:
// - decodes the given tx bytes
// - checks the num of msgs in the tx matches expectations
// - checks the msg is of expected type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ func (s *PriceDaemonIntegrationTestSuite) TestUpdateMarkets_AddMarketWithUSDTCon
)
}

// TestUpdateMarkets_PartialUpdates tests that the pricefeed daemon applies valid market params and discards invalid
// TestUpdateMarkets_PartialUpdate tests that the pricefeed daemon applies valid market params and discards invalid
// params whenever an update is partially valid.
func (s *PriceDaemonIntegrationTestSuite) TestUpdateMarkets_PartialUpdate() {
// Start the daemon with a single market. Then, update the endpoint to return partially valid params.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func newTestPriceFetcherBufferedChannel() chan *PriceFetcherSubtaskResponse {
return bCh
}

// asserQueryHandlerCalledWithMarkets asserts that the query handler was called with the expected markets.
// assertQueryHandlerCalledWithMarkets asserts that the query handler was called with the expected markets.
func assertQueryHandlerCalledWithMarkets(
t *testing.T,
queryHandler *mocks.ExchangeQueryHandler,
Expand Down
2 changes: 1 addition & 1 deletion protocol/lib/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
)

// MaybeGetStructJsonString returns the json representation of a struct, or a formatted string using
// MaybeGetJsonString returns the json representation of a struct, or a formatted string using
// %+v if the json conversion encounters an error.
func MaybeGetJsonString(i interface{}) string {
jsonData, err := json.Marshal(i)
Expand Down
Loading