make MessageReceipt#EventsRoot a pointer.
This commit is contained in:
parent
4eb94b5cea
commit
9e6b343620
@ -12,9 +12,10 @@ type MessageReceipt struct {
|
|||||||
ExitCode exitcode.ExitCode
|
ExitCode exitcode.ExitCode
|
||||||
Return []byte
|
Return []byte
|
||||||
GasUsed int64
|
GasUsed int64
|
||||||
EventsRoot cid.Cid // Root of Event AMT
|
EventsRoot *cid.Cid // Root of Event AMT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mr *MessageReceipt) Equals(o *MessageReceipt) bool {
|
func (mr *MessageReceipt) Equals(o *MessageReceipt) bool {
|
||||||
return mr.ExitCode == o.ExitCode && bytes.Equal(mr.Return, o.Return) && mr.GasUsed == o.GasUsed && mr.EventsRoot == o.EventsRoot
|
return mr.ExitCode == o.ExitCode && bytes.Equal(mr.Return, o.Return) && mr.GasUsed == o.GasUsed &&
|
||||||
|
(mr.EventsRoot == o.EventsRoot || (mr.EventsRoot != nil && o.EventsRoot != nil && *mr.EventsRoot == *o.EventsRoot))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user