feat: gateway - StateLookupID

This commit is contained in:
Dirk McCormick
2020-10-09 11:43:03 +02:00
parent eec13ff8dc
commit 00a14de094
7 changed files with 39 additions and 22 deletions
+1 -5
View File
@@ -382,12 +382,8 @@ func (a *StateAPI) StateLookupID(ctx context.Context, addr address.Address, tsk
if err != nil {
return address.Undef, xerrors.Errorf("loading tipset %s: %w", tsk, err)
}
state, err := a.stateForTs(ctx, ts)
if err != nil {
return address.Undef, err
}
return state.LookupID(addr)
return a.StateManager.LookupID(ctx, addr, ts)
}
func (a *StateAPI) StateAccountKey(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) {