diff --git a/chain_test.go b/chain_test.go index 596bdd5..6d5a4e2 100644 --- a/chain_test.go +++ b/chain_test.go @@ -82,13 +82,12 @@ func TestClient_ChainGetParentMessages(t *testing.T) { t.Log(len(pms)) for _, pm := range pms { address.CurrentNetwork = address.Mainnet - cid := pm.Cid.Cid from := pm.Message.From.String() to := pm.Message.To.String() value := pm.Message.Value - t.Log(cid) + t.Log(pm.Cid.String()) t.Log(from) t.Log(to) - t.Log(value) + t.Log(ToFil(value).String()) } } diff --git a/types/message.go b/types/message.go index efebfae..6c780d2 100644 --- a/types/message.go +++ b/types/message.go @@ -26,14 +26,10 @@ type Message struct { } type ParentMessage struct { - Cid Cid `json:"Cid"` + Cid cid.Cid `json:"Cid"` Message Message `json:"Message"` } -type Cid struct { - Cid string `json:"/"` -} - func (m *Message) Caller() address.Address { return m.From }