Commit c10028c6 authored by Mark Tyneway's avatar Mark Tyneway

Update op-bindings/solc/types.go

Co-authored-by: default avatarrefcell.eth <abigger87@gmail.com>
parent ce665207
......@@ -67,11 +67,9 @@ func (s *StorageLayout) GetStorageLayoutEntry(name string) (StorageLayoutEntry,
// GetStorageLayoutType returns the StorageLayoutType where the label matches
// the provided name.
func (s *StorageLayout) GetStorageLayoutType(name string) (StorageLayoutType, error) {
for typeName, typ := range s.Types {
if typeName == name {
return typ, nil
}
}
if ty, ok := s.Types[name]; ok {
return ty, nil
}
return StorageLayoutType{}, fmt.Errorf("%s not found", name)
}
......
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