Vat.fold: verify that the event signature is correct

This commit is contained in:
David Terry 2018-10-03 18:21:27 +02:00
parent 96f8279421
commit 0c58e0ac5b

View File

@ -53,5 +53,10 @@ func verifyLog(log types.Log) error {
return errors.New("log missing topics")
}
sig := log.Topics[0].String()
if sig != shared.VatFoldSignature {
return errors.New("log is not a Vat.fold event")
}
return nil
}