Merge pull request #8356 from filecoin-project/fix/wallet-init-type

fix: lotus-wallet: pass correct repo type to repo.Init
This commit is contained in:
Aayush Rajasekaran 2022-03-21 11:59:39 -04:00 committed by GitHub
commit 3a62c8b4a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,7 +278,7 @@ func openRepo(cctx *cli.Context) (repo.LockedRepo, types.KeyStore, error) {
return nil, nil, err
}
if !ok {
if err := r.Init(repo.Worker); err != nil {
if err := r.Init(repo.Wallet); err != nil {
return nil, nil, err
}
}