From 16449007ab8e39150575a3f726945836698afc7c Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 10 Jun 2021 07:57:27 -0700 Subject: [PATCH] fix(lotus-sim): fix funding error check --- cmd/lotus-sim/simulation/funding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-sim/simulation/funding.go b/cmd/lotus-sim/simulation/funding.go index a58b8c0e4..e29f4f1b8 100644 --- a/cmd/lotus-sim/simulation/funding.go +++ b/cmd/lotus-sim/simulation/funding.go @@ -59,7 +59,7 @@ func fund(send packFunc, target address.Address, times int) error { func sendAndFund(send packFunc, msg *types.Message) (res *types.MessageReceipt, err error) { for i := 0; i < 10; i++ { res, err = send(msg) - if err != nil { + if err == nil { return res, nil } aerr, ok := err.(aerrors.ActorError)