Skip to content

Commit

Permalink
Fixing the formating in this line 217
Browse files Browse the repository at this point in the history
golang-cli

Signed-off-by: liuguojun <back0893@163.com>
  • Loading branch information
liuguojun authored and jsign committed May 26, 2021
1 parent 93ea5ab commit 9dd7e78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion ffs/integrationtest/integrationtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bytes"
"context"
"fmt"
lapi "github.com/filecoin-project/lotus/api"
"math/rand"
"time"

lapi "github.com/filecoin-project/lotus/api"
"github.com/ipfs/go-cid"
ipfsfiles "github.com/ipfs/go-ipfs-files"
httpapi "github.com/ipfs/go-ipfs-http-client"
Expand Down
5 changes: 0 additions & 5 deletions wallet/lotuswallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,6 @@ func (m *Module) Balance(ctx context.Context, addr string) (*big.Int, error) {
}
b, err := client.WalletBalance(ctx, a)
if err != nil {
//如果钱包里面灭有钱或者从未交易过.这会导致一个错误,actor not found
//查询string中是否有actor not found,但是一般都是矿工
if strings.Contains(err.Error(),"actor not found"){
return &big.Int{},nil
}
return nil, fmt.Errorf("getting balance from lotus: %s", err)
}
return b.Int, nil
Expand Down

0 comments on commit 9dd7e78

Please sign in to comment.