vat.fold: handle errors

This commit is contained in:
David Terry 2018-10-10 13:39:33 +03:00
parent 2e89df081c
commit 7e7ad13de6

View File

@ -44,6 +44,10 @@ func (VatFoldConverter) ToModels(ethLogs []types.Log) ([]VatFoldModel, error) {
rate := big.NewInt(0).SetBytes(ethLog.Topics[3].Bytes()).String()
raw, err := json.Marshal(ethLog)
if err != nil {
return models, err
}
model := VatFoldModel{
Ilk: ilk,
Urn: urn,