github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/errors/contracts.go (about) 1 package errors 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 // NewContractNotFoundError constructs a new ErrContractNotFoundError error 8 func NewContractNotFoundError( 9 address flow.Address, 10 contract string, 11 ) CodedError { 12 return NewCodedError( 13 ErrCodeContractNotFoundError, 14 "contract %s not found for address %s", 15 contract, 16 address) 17 }