style: enable strict gofumpt (#15579)
This commit is contained in:
@@ -20,7 +20,7 @@ type AccountRetriever interface {
|
||||
GetAccount(clientCtx Context, addr sdk.AccAddress) (Account, error)
|
||||
GetAccountWithHeight(clientCtx Context, addr sdk.AccAddress) (Account, int64, error)
|
||||
EnsureExists(clientCtx Context, addr sdk.AccAddress) error
|
||||
GetAccountNumberSequence(clientCtx Context, addr sdk.AccAddress) (accNum uint64, accSeq uint64, err error)
|
||||
GetAccountNumberSequence(clientCtx Context, addr sdk.AccAddress) (accNum, accSeq uint64, err error)
|
||||
}
|
||||
|
||||
var _ AccountRetriever = (*MockAccountRetriever)(nil)
|
||||
|
||||
@@ -90,7 +90,7 @@ func bytesToPubkey(bz []byte, keytype string) (cryptotypes.PubKey, bool) {
|
||||
// getPubKeyFromRawString returns a PubKey (PubKeyEd25519 or PubKeySecp256k1) by attempting
|
||||
// to decode the pubkey string from hex, base64, and finally bech32. If all
|
||||
// encodings fail, an error is returned.
|
||||
func getPubKeyFromRawString(pkstr string, keytype string) (cryptotypes.PubKey, error) {
|
||||
func getPubKeyFromRawString(pkstr, keytype string) (cryptotypes.PubKey, error) {
|
||||
// Try hex decoding
|
||||
bz, err := hex.DecodeString(pkstr)
|
||||
if err == nil {
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ func GetChainHeight(clientCtx client.Context) (int64, error) {
|
||||
// tx.height = 5 # all txs of the fifth block
|
||||
//
|
||||
// For more information, see the /subscribe CometBFT RPC endpoint documentation
|
||||
func QueryBlocks(clientCtx client.Context, page, limit int, query string, orderBy string) (*sdk.SearchBlocksResult, error) {
|
||||
func QueryBlocks(clientCtx client.Context, page, limit int, query, orderBy string) (*sdk.SearchBlocksResult, error) {
|
||||
node, err := clientCtx.GetNode()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -74,7 +74,7 @@ func (t TestAccountRetriever) EnsureExists(_ Context, addr sdk.AccAddress) error
|
||||
}
|
||||
|
||||
// GetAccountNumberSequence implements AccountRetriever.GetAccountNumberSequence
|
||||
func (t TestAccountRetriever) GetAccountNumberSequence(_ Context, addr sdk.AccAddress) (accNum uint64, accSeq uint64, err error) {
|
||||
func (t TestAccountRetriever) GetAccountNumberSequence(_ Context, addr sdk.AccAddress) (accNum, accSeq uint64, err error) {
|
||||
acc, ok := t.Accounts[addr.String()]
|
||||
if !ok {
|
||||
return 0, 0, fmt.Errorf("account %s not found", addr)
|
||||
|
||||
@@ -168,7 +168,7 @@ func (f Factory) WithFees(fees string) Factory {
|
||||
}
|
||||
|
||||
// WithTips returns a copy of the Factory with an updated tip.
|
||||
func (f Factory) WithTips(tip string, tipper string) Factory {
|
||||
func (f Factory) WithTips(tip, tipper string) Factory {
|
||||
parsedTips, err := sdk.ParseCoinsNormalized(tip)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user