# X_CONTRACT_EXERCISE_UNSCOPED

## Means

a contract exercise could not roll back its writes

## Typical cause

no database client installed and no transaction open, outside the test environment

## Fix

`setDbClient(<test client>) before .contract(), or run under bun test`

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