# X_CONTRACT_EXERCISE_ENVIRONMENT

## Means

a contract exercise was asked to run in a deployed environment

## Typical cause

exerciseAction/exerciseQuery ran with ULTIMATE_ENV or NODE_ENV set to staging or production

## Fix

`run the .contract() test under bun test (NODE_ENV=test)`

[Core and runtime](/error-codes#core-and-runtime)
