Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ and remapped through `remappings.txt` instead of git submodules.
- `forge config` — print the resolved Foundry config
- `forge script script/Deploy.s.sol --broadcast --fork-url http://localhost:8545` — deploy `Foo` to a local node
(requires `MNEMONIC` or `ETH_FROM`)
- `forge script script/DeployBrowser.s.sol --broadcast --fork-url http://localhost:8545 --browser` — deploy `Foo` to a
local node (requires you to connect your wallet at localhost:9545)

### Bun scripts (`package.json`)

Expand Down
13 changes: 13 additions & 0 deletions script/DeployBrowser.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.29 <0.9.0;

import { Foo } from "../src/Foo.sol";
import { Script } from "forge-std/src/Script.sol";

contract DeployBrowser is Script {
function run() public returns (Foo foo) {
vm.startBroadcast();
foo = new Foo();
vm.stopBroadcast();
}
}
Loading