Skip to content

Commit

Permalink
Fix ChainGetParentMessages type
Browse files Browse the repository at this point in the history
  • Loading branch information
myxtype committed Apr 12, 2021
1 parent e469582 commit 0dbd40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
6 changes: 1 addition & 5 deletions types/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0dbd40a

Please sign in to comment.