forked from cerc-io/ipld-eth-server
vat.fold: handle errors
This commit is contained in:
parent
2e89df081c
commit
7e7ad13de6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user