forked from cerc-io/ipld-eth-server
Vat.fold: verify that the event signature is correct
This commit is contained in:
parent
96f8279421
commit
0c58e0ac5b
@ -53,5 +53,10 @@ func verifyLog(log types.Log) error {
|
|||||||
return errors.New("log missing topics")
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user