Tools & Automation RivETH v1.7.4

Redeploying a Contract

Rapid Redeployment Loop

Need to fix a bug in your Solidity logic? Rather than refreshing the browser and re-entering everything from scratch, RivETH supports an instant fix-to-test loop.

The Redeployment Loop
Edit your contract in VS Code → compile with ./compile [FileName] or make [FileName] → click Load in RivETH → click Deploy.

Clicking Load fetches the latest artifacts from artifacts/ and rebuilds the function interface in place.

Live Server Auto-Reload Setting
By default, VS Code's Live Server refreshes the browser whenever any file is saved. RivETH disables auto-reload for .sol files in .vscode/settings.json so saving Solidity code does not interrupt your active session. Keep this setting intact for the rapid redeployment workflow.

Pro Tips

  • The 'Load' Refresh

    After updating and compiling your contract, click Load (or press L) in RivETH to pull the new ABI and bytecode without reloading the browser tab or restarting the node.

  • Persistent Node Session

    RivETH stays connected to your local Hardhat node as long as the terminal running npx hardhat node remains active.