Check code for Zenith gotchas
zenith_check_compatScans Solidity, TypeScript/JavaScript, or deployed bytecode for Zenith incompatibilities such as block-number clocks, unsupported opcodes, missing dependencies, and RPC limits before deployment.
Instructions
Scans Solidity, TypeScript/JavaScript or deployed bytecode for things that behave differently on Zenith: block.number used as a clock (blocks only come with transactions), prevrandao randomness, blob opcodes, Osaka-only opcodes and compiler targets (Zenith runs Prague), dependencies on Multicall3/Permit2/EntryPoint/CreateX (not deployed), WebSockets, filters and subscriptions (not available), waiting for many confirmations (can hang), and unbounded getLogs ranges.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "zenith_check_compat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File or project folder to scan | |
| source | No | Source text to scan instead of a path | |
| address | No | Deployed contract to scan by bytecode | |
| language | No | Language of `source` | solidity |