fix(lotus-sim): fix funding error check
This commit is contained in:
parent
8d734d81d9
commit
16449007ab
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user