diff --git a/multiwallet.go b/multiwallet.go index 30b3f5a9..8e55c9ff 100644 --- a/multiwallet.go +++ b/multiwallet.go @@ -45,7 +45,7 @@ func NewMultiWallet(rootDir, dbDriver, netType string) (*MultiWallet, error) { } rootDir = filepath.Join(rootDir, netType) - err = os.MkdirAll(rootDir, 0700) + err = os.MkdirAll(rootDir, os.ModePerm) if err != nil { return nil, errors.Errorf("failed to create rootDir: %v", err) } diff --git a/utils/netparams.go b/utils/netparams.go index 588bf840..1f173ce0 100644 --- a/utils/netparams.go +++ b/utils/netparams.go @@ -19,6 +19,6 @@ func ChainParams(netType string) (*chaincfg.Params, error) { case strings.ToLower(testnetParams.Name): return testnetParams, nil default: - return nil, errors.New("net type must be either mainnet or testnet3") + return nil, errors.New("invalid net type") } }