From 40b8e9562eb20432c37e3b1d8ec45cfb31022c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Tue, 15 Nov 2022 12:38:59 +0000 Subject: [PATCH] fix {=>New}EthHashFromCid. --- node/impl/full/eth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/impl/full/eth.go b/node/impl/full/eth.go index 0dfd6033d..24394e83d 100644 --- a/node/impl/full/eth.go +++ b/node/impl/full/eth.go @@ -1259,7 +1259,7 @@ func ethFilterResultFromEvents(evs []*filter.CollectedEvent) (*api.EthFilterResu return nil, err } - log.TransactionHash, err = api.EthHashFromCid(ev.MsgCid) + log.TransactionHash, err = api.NewEthHashFromCid(ev.MsgCid) if err != nil { return nil, err } @@ -1268,7 +1268,7 @@ func ethFilterResultFromEvents(evs []*filter.CollectedEvent) (*api.EthFilterResu if err != nil { return nil, err } - log.BlockHash, err = api.EthHashFromCid(c) + log.BlockHash, err = api.NewEthHashFromCid(c) if err != nil { return nil, err } @@ -1287,7 +1287,7 @@ func ethFilterResultFromTipSets(tsks []types.TipSetKey) (*api.EthFilterResult, e if err != nil { return nil, err } - hash, err := api.EthHashFromCid(c) + hash, err := api.NewEthHashFromCid(c) if err != nil { return nil, err } @@ -1302,7 +1302,7 @@ func ethFilterResultFromMessages(cs []cid.Cid) (*api.EthFilterResult, error) { res := &api.EthFilterResult{} for _, c := range cs { - hash, err := api.EthHashFromCid(c) + hash, err := api.NewEthHashFromCid(c) if err != nil { return nil, err }