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,10 +67,8 @@ func (s *StorageLayout) GetStorageLayoutEntry(name string) (StorageLayoutEntry, ...@@ -67,10 +67,8 @@ func (s *StorageLayout) GetStorageLayoutEntry(name string) (StorageLayoutEntry,
// GetStorageLayoutType returns the StorageLayoutType where the label matches // GetStorageLayoutType returns the StorageLayoutType where the label matches
// the provided name. // the provided name.
func (s *StorageLayout) GetStorageLayoutType(name string) (StorageLayoutType, error) { func (s *StorageLayout) GetStorageLayoutType(name string) (StorageLayoutType, error) {
for typeName, typ := range s.Types { if ty, ok := s.Types[name]; ok {
if typeName == name { return ty, nil
return typ, nil
}
} }
return StorageLayoutType{}, fmt.Errorf("%s not found", name) 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