diff --git a/pkg/transformers/vat_fold/converter.go b/pkg/transformers/vat_fold/converter.go index 4f57919c..fc5e6150 100644 --- a/pkg/transformers/vat_fold/converter.go +++ b/pkg/transformers/vat_fold/converter.go @@ -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,