Fix to addresses in paychmgr channel creation

This commit is contained in:
Alexey 2020-06-26 09:06:01 +03:00 committed by GitHub
parent 4af9a20903
commit eafb04004e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ func (pm *Manager) TrackInboundChannel(ctx context.Context, ch address.Address)
return err return err
} }
from := account.Address from := account.Address
_, err = pm.sm.LoadActorState(ctx, st.From, &account, nil) _, err = pm.sm.LoadActorState(ctx, st.To, &account, nil)
if err != nil { if err != nil {
return err return err
} }
@ -114,7 +114,7 @@ func (pm *Manager) loadOutboundChannelInfo(ctx context.Context, ch address.Addre
return nil, err return nil, err
} }
from := account.Address from := account.Address
_, err = pm.sm.LoadActorState(ctx, st.From, &account, nil) _, err = pm.sm.LoadActorState(ctx, st.To, &account, nil)
if err != nil { if err != nil {
return nil, err return nil, err
} }