github.com/koko1123/flow-go-1@v0.29.6/fvm/errors/contracts.go (about)

     1  package errors
     2  
     3  import (
     4  	"github.com/koko1123/flow-go-1/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  }