Commit 1a96fda0 authored by Mark Tyneway's avatar Mark Tyneway

check-l2: add check for EAS `getName()(string)`

Sanity check that the previous commit sets up EAS correctly
parent 23c7cd94
...@@ -830,6 +830,14 @@ func checkEAS(addr common.Address, client *ethclient.Client) error { ...@@ -830,6 +830,14 @@ func checkEAS(addr common.Address, client *ethclient.Client) error {
} }
log.Info("EAS", "registry", registry) log.Info("EAS", "registry", registry)
name, err := contract.GetName(&bind.CallOpts{})
if err != nil {
return err
}
if name != "EAS" {
return fmt.Errorf("Incorrect name %s", name)
}
version, err := contract.Version(&bind.CallOpts{}) version, err := contract.Version(&bind.CallOpts{})
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment