15 lines
337 B
Go
15 lines
337 B
Go
package testing
|
|
|
|
import (
|
|
"github.com/8thlight/vulcanizedb/pkg/core"
|
|
)
|
|
|
|
func FindAttribute(contractAttributes core.ContractAttributes, attributeName string) *core.ContractAttribute {
|
|
for _, contractAttribute := range contractAttributes {
|
|
if contractAttribute.Name == attributeName {
|
|
return &contractAttribute
|
|
}
|
|
}
|
|
return nil
|
|
}
|