Skip to content

Commit 45418e8

Browse files
authored
Merge pull request #411 from ipfs-force-community/fix/list-claim
fix: parse address failed
2 parents 4985556 + 0aebe58 commit 45418e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/droplet-client/datacap.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ var datacapClaimsListCmd = &cli.Command{
308308

309309
client := abi.ActorID(0)
310310
if cliCtx.IsSet("client") {
311-
clientAddr, err := address.NewFromString("client")
311+
clientAddr, err := address.NewFromString(cliCtx.String("client"))
312312
if err != nil {
313313
return err
314314
}
@@ -390,7 +390,7 @@ var datacapAllocationListCmd = &cli.Command{
390390

391391
provider := abi.ActorID(0)
392392
if cliCtx.IsSet("provider") {
393-
providerAddr, err := address.NewFromString("provider")
393+
providerAddr, err := address.NewFromString(cliCtx.String("provider"))
394394
if err != nil {
395395
return err
396396
}

0 commit comments

Comments
 (0)