From a3ca319e9b28e30f141d12ee6e2a7b78fabdd117 Mon Sep 17 00:00:00 2001 From: Taka Goto Date: Wed, 17 Oct 2018 12:04:11 -0500 Subject: [PATCH] remove unnecessary byte slicing --- pkg/transformers/vat_flux/converter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/transformers/vat_flux/converter.go b/pkg/transformers/vat_flux/converter.go index 47dac29a..817a00d3 100644 --- a/pkg/transformers/vat_flux/converter.go +++ b/pkg/transformers/vat_flux/converter.go @@ -37,9 +37,9 @@ func (VatFluxConverter) ToModels(ethLogs []types.Log) ([]VatFluxModel, error) { return nil, err } - ilk := common.BytesToAddress(ethLog.Topics[1].Bytes()[:]) - src := common.BytesToAddress(ethLog.Topics[2].Bytes()[:]) - dst := common.BytesToAddress(ethLog.Topics[3].Bytes()[:]) + ilk := common.BytesToAddress(ethLog.Topics[1].Bytes()) + src := common.BytesToAddress(ethLog.Topics[2].Bytes()) + dst := common.BytesToAddress(ethLog.Topics[3].Bytes()) radBytes := shared.GetDataBytesAtIndex(-1, ethLog.Data) rad := big.NewInt(0).SetBytes(radBytes).String()