chore: gofumpt (#11839)
* fumpt using main not master... * be more descriptive * fumpt * fix nits Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
bc2d553f77
commit
55054282d2
@@ -218,7 +218,7 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o
|
||||
|
||||
func makeOutputFilepath(rootDir, nodeID string) (string, error) {
|
||||
writePath := filepath.Join(rootDir, "config", "gentx")
|
||||
if err := tmos.EnsureDir(writePath, 0700); err != nil {
|
||||
if err := tmos.EnsureDir(writePath, 0o700); err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ func readUnsignedGenTxFile(clientCtx client.Context, r io.Reader) (sdk.Tx, error
|
||||
}
|
||||
|
||||
func writeSignedGenTx(clientCtx client.Context, outputDocument string, tx sdk.Tx) error {
|
||||
outputFile, err := os.OpenFile(outputDocument, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0644)
|
||||
outputFile, err := os.OpenFile(outputDocument, os.O_CREATE|os.O_EXCL|os.O_WRONLY, 0o644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -87,7 +87,6 @@ func TestInitCmd(t *testing.T) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestInitRecover(t *testing.T) {
|
||||
@@ -286,7 +285,7 @@ func TestInitConfig(t *testing.T) {
|
||||
|
||||
// custom tx codec
|
||||
func makeCodec() *codec.LegacyAmino {
|
||||
var cdc = codec.NewLegacyAmino()
|
||||
cdc := codec.NewLegacyAmino()
|
||||
sdk.RegisterLegacyAminoCodec(cdc)
|
||||
cryptocodec.RegisterCrypto(cdc)
|
||||
return cdc
|
||||
|
||||
Reference in New Issue
Block a user