Skip to content

Commit

Permalink
client/asset/eth: fix unable to write compliant_providers.json
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Feb 22, 2023
1 parent 2674488 commit 3675ba0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/asset/eth/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"fmt"
"math"
"math/big"
"os"
"os/user"
"path/filepath"
"sort"
Expand Down Expand Up @@ -589,6 +590,11 @@ func createWallet(createWalletParams *asset.CreateWalletParams, skipConnect bool
// defer node.Close()
// return importKeyToNode(node, privateKey, createWalletParams.Pass)
case walletTypeRPC:
// Make the wallet dir if it does not exist, otherwise we may fail to
// write the compliant_providers.json file.
if err := os.MkdirAll(walletDir, 0700); err != nil {
return err
}

// Check that we can connect to all endpoints.
providerDef := createWalletParams.Settings[providersKey]
Expand Down

0 comments on commit 3675ba0

Please sign in to comment.