Skip to content

Commit

Permalink
Merge pull request #801 from textileio/jsign/fx
Browse files Browse the repository at this point in the history
cover that lotus fails if the addr never had a txn for verified clien…
  • Loading branch information
jsign committed Mar 11, 2021
2 parents aee7459 + ee6b45d commit affb6ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wallet/lotuswallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/ioutil"
"math/big"
"net/http"
"strings"
"time"

"github.com/filecoin-project/go-address"
Expand All @@ -20,7 +21,8 @@ import (
)

const (
feeThreshold = 1_000_000
feeThreshold = 1_000_000
errActorNotFound = "actor not found"
)

var (
Expand Down Expand Up @@ -280,7 +282,7 @@ func (m *Module) GetVerifiedClientInfo(ctx context.Context, addr string) (wallet

func getVerifiedClientInfo(ctx context.Context, c *apistruct.FullNodeStruct, addr address.Address) (wallet.VerifiedClientInfo, error) {
sp, err := c.StateVerifiedClientStatus(ctx, addr, types.EmptyTSK)
if err != nil {
if err != nil && !strings.Contains(err.Error(), errActorNotFound) {
return wallet.VerifiedClientInfo{}, fmt.Errorf("getting verified-client information: %s", err)
}
if sp == nil {
Expand Down

0 comments on commit affb6ef

Please sign in to comment.