Edit source
Click Edit source to open the source editor.
| Element | Notes |
|---|---|
| Address | The address whose code you are editing. |
| File | Dropdown to switch between source files for multi-file contracts. |
| Editor | The full source, editable line by line. |
| Select Contract Name | Which contract in the file is deployed at the address. |
Compiler settings
Select Compiler Info in the left panel to adjust how the edited source is compiled:
- Compiler Version
- Optimization Used and Optimization Count
- EVM Version
- ViaIR
Add contract source
Click Add contract source in the left panel to edit additional contracts in the same simulation. Enter the address of any deployed contract and its source loads as another entry in the list. This lets one simulation run modified code for several contracts at once, for example a router and the pool it calls into.Edit ABI
Click Edit ABI to open a JSON editor over the ABI the builder uses to decode functions and encode your inputs.