File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,16 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55function generate() { # deploymentDir #explorerUrl
66 deploymentDir=$1
77 explorerUrl=$2
8- for f in $( ls -1 $deploymentDir /* .json 2> /dev/null | grep -v " PNK.json\|MetaEvidence_*\|CREATE3Factory.json" | sort) ; do
8+ for f in $( ls -1 $deploymentDir /* .json 2> /dev/null | grep -v " PNK.json\|MetaEvidence_*\|CREATE3Factory.json\|_Proxy.json\|_Implementation.json " | sort) ; do
99 contractName=$( basename $f .json)
1010 address=$( cat $f | jq -r .address)
11- echo " - [$contractName ]($explorerUrl$address )"
11+ implementation=$( cat $f | jq -r .implementation)
12+
13+ if [ " $implementation " != " null" ]; then
14+ echo " - [$contractName : proxy]($explorerUrl$address ), [implementation]($explorerUrl$implementation )"
15+ else
16+ echo " - [$contractName ]($explorerUrl$address )"
17+ fi
1218 done
1319}
1420
You can’t perform that action at this time.
0 commit comments