-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match directory contracts to deployed versions :/.
- Loading branch information
Showing
6 changed files
with
43 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# XXX: --metadata-hash is poorly designed | ||
function clip() { head -c-86; } | ||
|
||
function check() { | ||
code=$(cj-eth code $2 | tail -c+3) | ||
cmp -l <(tail -c-"${#code}" build/$1.bin | clip) <(echo -n "${code}" | clip) | ||
} | ||
|
||
check OrchidDirectory directory | ||
check OrchidLocation locator | ||
|
||
check OrchidList $(cj-eth resolve partners.orch1d.eth) | ||
check OrchidUntrusted $(cj-eth resolve untrusted.orch1d.eth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
for sol in *.sol; do | ||
env/solc.sh 0.5.13 build "${sol}" --optimize | ||
args=() | ||
if [[ ${sol} == curator.sol ]]; then | ||
args+=(--optimize); fi | ||
env/solc.sh 0.5.13 build "${sol}" "${args[@]}" | ||
done |
File renamed without changes.