Skip to content

Instantly share code, notes, and snippets.

@Aviksaikat
Created October 28, 2023 19:12
Show Gist options
  • Save Aviksaikat/89f080b84299d78f8e22c7048fb33346 to your computer and use it in GitHub Desktop.
Save Aviksaikat/89f080b84299d78f8e22c7048fb33346 to your computer and use it in GitHub Desktop.
Deploy script to local nodes for testing challenges of paradigm CTF 2023
#!/bin/bash
ANVIL_RPC_URL="http://127.0.0.1:8545"
# make it background
anvil --fork-url $WEB3_INFURA_RPC --auto-impersonate &
cd challenge/project && forge script --rpc-url "$ANVIL_RPC_URL" script/Deploy.s.sol:Deploy --broadcast --unlocked --sender $(cast az)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment