Skip to content

Commit

Permalink
Environment Variables (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshrieve authored Sep 8, 2022
1 parent 8f093bc commit 0717812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 2 additions & 7 deletions deployment/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#!/bin/bash

# deploy bibos to anvil

# anvil rpc
RPC_URL=http://127.0.0.1:8545
# // anvil account 9
PRIVATE_KEY=0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6
PUBLIC_KEY=0xa0ee7a142d267c1f36714e4a8f75612f20a79720
# deploy bibos
# set env vars RPC_URL and PRIVATE_KEY using `source .env`

DEPLOYMENTS_PATH=./deployment/deployments.json

Expand Down
8 changes: 2 additions & 6 deletions scripts/get_bytecode_size.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#!/bin/bash

# anvil rpc
RPC_URL=http://127.0.0.1:8545
# // anvil account 9
PRIVATE_KEY=0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6
PUBLIC_KEY=0xa0ee7a142d267c1f36714e4a8f75612f20a79720

# set env var RPC_URL using `source .env`

# $1 is the name of the contract
CREATE_OUTPUT=$(forge create --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 $1 --json)
DEPLOYED_TO=$(echo $CREATE_OUTPUT | jq -r '.deployedTo')


forge script src/scripts/bytecode_size.sol --silent --rpc-url $RPC_URL -s "get_bytecode_size(address)" $DEPLOYED_TO --json

0 comments on commit 0717812

Please sign in to comment.