lotus-provider: Encode storage rpc secret correctly in from-miner

This commit is contained in:
Łukasz Magiera 2023-11-11 12:40:42 +01:00
parent 7efc4e4bf6
commit 339e062975

View File

@ -151,7 +151,7 @@ func fromMiner(cctx *cli.Context) (err error) {
if err != nil {
return xerrors.Errorf("error getting JWTSecretName: %w", err)
}
lpCfg.Apis.StorageRPCSecret = base64.RawStdEncoding.EncodeToString(js.PrivateKey)
lpCfg.Apis.StorageRPCSecret = base64.StdEncoding.EncodeToString(js.PrivateKey)
// Populate API Key
_, header, err := cliutil.GetRawAPI(cctx, repo.FullNode, "v0")