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 in comment #275

Closed
wants to merge 1 commit into from
Closed
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 chain/exchange/types/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func OrdersByMarketDirectionPriceOrderHashPrefix(marketID, orderHash common.Hash
return append(ordersByMarketDirectionPricePrefix(marketID, price, isLong), orderHash.Bytes()...)
}

// orderIndexByMarketDirectionSubaccountPrefix allows to obtain prefix of exchange against a particular marketID, direction and price
// ordersByMarketDirectionPricePrefix allows to obtain prefix of exchange against a particular marketID, direction and price
func ordersByMarketDirectionPricePrefix(marketID common.Hash, price *big.Int, isLong bool) []byte {
return append(MarketDirectionPrefix(marketID, isLong), common.LeftPadBytes(price.Bytes(), 32)...)
}
Expand Down
2 changes: 1 addition & 1 deletion client/tm/tmclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *tmClient) GetBlock(ctx context.Context, height int64) (*ctypes.ResultBl
return c.rpcClient.Block(ctx, &height)
}

// GetBlock queries for a block by height. An error is returned if the query fails.
// GetBlockResults queries for a block by height. An error is returned if the query fails.
func (c *tmClient) GetBlockResults(ctx context.Context, height int64) (*ctypes.ResultBlockResults, error) {
return c.rpcClient.BlockResults(ctx, &height)
}
Expand Down
2 changes: 1 addition & 1 deletion typeddata/typed_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type TypedDataDomain struct {

var typedDataReferenceTypeRegexp = regexp.MustCompile(`^[A-Z](\w*)(\[\])?$`)

// SignTextWithValidator signs the given message which can be further recovered
// SignTextValidator signs the given message which can be further recovered
// with the given validator.
// hash = keccak256("\x19\x00"${address}${data}).
func SignTextValidator(validatorData ValidatorData) (signature hexutil.Bytes, message string) {
Expand Down