forked from autonity/autonity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* restore unmodified 4byte.json file * fix generation of 4bytedb * change ether to auton in cmdline Co-authored-by: Lorenzo Alluminio <[email protected]>
- Loading branch information
1 parent
1bfd177
commit 5ecab93
Showing
6 changed files
with
293,782 additions
and
107 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
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
#!/bin/bash | ||
SOLC_BIN="$1" | ||
echo "{" > signer/fourbyte/autonity_4byte.json | ||
$SOLC_BIN --hashes autonity/solidity/contracts/Autonity.sol 2>/dev/null | grep -E --color=never "^[0-9a-f]{8}: .*" | sed -E 's/^([0-9a-f]{8}): (.*)$/"\1": "\2",/' >> signer/fourbyte/autonity_4byte.json | ||
LAST_LINE=$(cat signer/fourbyte/autonity_4byte.json | wc -l) | ||
sed -i "$LAST_LINE s/,$//" signer/fourbyte/autonity_4byte.json | ||
echo "}" >> signer/fourbyte/autonity_4byte.json | ||
cat signer/fourbyte/4byte.json signer/fourbyte/autonity_4byte.json | jq -s add > signer/fourbyte/4byte_merged.json | ||
mv signer/fourbyte/4byte_merged.json signer/fourbyte/4byte.json | ||
rm signer/fourbyte/autonity_4byte.json |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.