ipld-eth-server/pkg/geth/testing/contract_attributes.go
2017-11-28 09:41:23 -06:00

15 lines
338 B
Go

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