diff --git a/core/chains/evm/client/erroring_node.go b/core/chains/evm/client/erroring_node.go index eb8f07b1558..00e8465bca3 100644 --- a/core/chains/evm/client/erroring_node.go +++ b/core/chains/evm/client/erroring_node.go @@ -104,7 +104,7 @@ func (e *erroringNode) CallContract(ctx context.Context, msg ethereum.CallMsg, b } func (e *erroringNode) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error) { - return nil, errors.New(e.errMsg) + return nil, pkgerrors.New(e.errMsg) } func (e *erroringNode) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) { diff --git a/core/chains/evm/client/errors.go b/core/chains/evm/client/errors.go index 265285fb535..42a983b40d7 100644 --- a/core/chains/evm/client/errors.go +++ b/core/chains/evm/client/errors.go @@ -327,7 +327,7 @@ func (s *SendError) IsCanceled() bool { if s.err == nil { return false } - return errors.Is(s.err, context.Canceled) + return pkgerrors.Is(s.err, context.Canceled) } func NewFatalSendError(e error) *SendError {