Skip to content

Commit

Permalink
Update submit selectors tool
Browse files Browse the repository at this point in the history
  • Loading branch information
lykhonis committed Nov 14, 2023
1 parent 0a3c8b4 commit 964b4f2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/submit_selectors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ submit() {
path=$(dirname $1)
name=$(basename $1)

echo "Submitting selectors of ${name}"
# forge inspect ${name} methodIdentifiers

# abi=$(forge inspect "${SRC_DIR}/${path}/${name}.sol:${name}" abi)
# content="{ \"contract_abi\": ${abi} }"
abi=$(forge inspect "${SRC_DIR}/${path}/${name}.sol:${name}" abi)
content="{ \"contract_abi\": ${abi} }"

# https://openchain.xyz
echo "${content}"

# echo "Submitting selectors of ${name} to openchain.xyz"
forge selectors upload ${name}

# https://www.4byte.directory
# echo "Submitting selectors of ${name} to 4byte.directory"
# curl \
# --header "Content-Type: application/json" \
# --request POST \
Expand Down

0 comments on commit 964b4f2

Please sign in to comment.