From b57c89e8ec4d401f50bb2b8c826e27e8d2ef6147 Mon Sep 17 00:00:00 2001 From: chuangjinglu Date: Sat, 23 Nov 2024 12:52:02 +0800 Subject: [PATCH] chore: fix some function names in interface comment Signed-off-by: chuangjinglu --- protocol/app/process/types.go | 4 ++-- protocol/x/clob/types/orderbook.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/app/process/types.go b/protocol/app/process/types.go index 5da74cc3d4..47fea78160 100644 --- a/protocol/app/process/types.go +++ b/protocol/app/process/types.go @@ -6,11 +6,11 @@ import ( // SingleMsgTx represents a tx with a single msg. type SingleMsgTx interface { - // validate checks if the underlying msg is valid or not. + // Validate checks if the underlying msg is valid or not. // Returns error if invalid. Otherwise, returns nil. Validate() error - // getMsg returns the underlying msg in the tx. + // GetMsg returns the underlying msg in the tx. GetMsg() sdk.Msg } diff --git a/protocol/x/clob/types/orderbook.go b/protocol/x/clob/types/orderbook.go index ba6d1f31bc..d7f39fbbb8 100644 --- a/protocol/x/clob/types/orderbook.go +++ b/protocol/x/clob/types/orderbook.go @@ -194,7 +194,7 @@ const ( // MatchableOrder is an interface that a matchable order must conform to. This interface is used // to generalize matching between standard orders and liquidations. type MatchableOrder interface { - // GetSubaccountID returns the `SubaccountId` of the subaccount that placed the order. + // GetSubaccountId returns the `SubaccountId` of the subaccount that placed the order. // In the case of a `LiquidationOrder`, it refers to the subaccount that is being liquidated. GetSubaccountId() satypes.SubaccountId // GetClobPairId returns the CLOB pair ID that this order should be matched against.