Edit source
Click Edit source to open the source editor.
The source editor: contract list and Compiler Info on the left, file selector and editable source on the right.
Edits apply only to your simulation. The deployed contract and other project members’ simulations are unaffected.
Click Apply Changes in the bottom-left corner to save the edits, then run the simulation. The step executes the modified code with the rest of the network state untouched.
Compiler settings
Select Compiler Info in the left panel to adjust how the edited source is compiled:
Compiler Info: compiler version, optimization settings, EVM version, and the ViaIR toggle.
- 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.
The Edit ABI dialog: the contract's ABI as editable JSON.