fix(lotus-sim): fix funding error check

This commit is contained in:
Steven Allen 2021-06-10 07:57:27 -07:00
parent 8d734d81d9
commit 16449007ab

View File

@ -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) { func sendAndFund(send packFunc, msg *types.Message) (res *types.MessageReceipt, err error) {
for i := 0; i < 10; i++ { for i := 0; i < 10; i++ {
res, err = send(msg) res, err = send(msg)
if err != nil { if err == nil {
return res, nil return res, nil
} }
aerr, ok := err.(aerrors.ActorError) aerr, ok := err.(aerrors.ActorError)