add code cid to stateReadState output

This commit is contained in:
whyrusleeping 2021-02-09 14:18:19 -08:00
parent 5a3b983954
commit e387f3810e
2 changed files with 2 additions and 0 deletions

View File

@ -650,6 +650,7 @@ type Message struct {
type ActorState struct {
Balance types.BigInt
Code cid.Cid
State interface{}
}

View File

@ -473,6 +473,7 @@ func (a *StateAPI) StateReadState(ctx context.Context, actor address.Address, ts
return &api.ActorState{
Balance: act.Balance,
Code: act.Code,
State: oif,
}, nil
}