forked from cerc-io/ipld-eth-server
remove unnecessary byte slicing
This commit is contained in:
parent
2f64269ab3
commit
a3ca319e9b
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user