Skip to content

Commit

Permalink
𓋭 ₊✧⋆ ˚。⋆˚ Simplify setting
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z authored and nerderlyne committed Nov 17, 2023
1 parent de47aac commit 77bc49f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AccountTest:testCdFallback() (gas: 485098)
AccountTest:testCdFallback2() (gas: 1269159)
AccountTest:testDelegateExecute() (gas: 414974)
AccountTest:testDelegateExecute(uint256) (runs: 256, μ: 400929, ~: 388915)
AccountTest:testDelegateExecute(uint256) (runs: 256, μ: 398529, ~: 388915)
AccountTest:testDelegateExecuteRevertsIfOwnerSlotValueChanged() (gas: 363692)
AccountTest:testDepositFunctions() (gas: 543896)
AccountTest:testDirectStorage() (gas: 70256)
Expand Down
4 changes: 4 additions & 0 deletions scripts/initCode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo $(cast concat-hex "$(forge inspect $1 bytecode)" "$(cast abi-encode "constructor($(forge inspect $1 abi \
| jq -r '.[] | select(.type == "constructor") | .inputs | map(.type) | join(",")'))" ${@:3})")
3 changes: 3 additions & 0 deletions scripts/initCodeHash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
echo $(cast keccak $(cast concat-hex "$(forge inspect $1 bytecode)" "$(cast abi-encode "constructor($(forge inspect $1 abi \
| jq -r '.[] | select(.type == "constructor") | .inputs | map(.type) | join(",")'))" ${@:3})"))

0 comments on commit 77bc49f

Please sign in to comment.