File tree 1 file changed +8
-2
lines changed
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 )"
5
5
function generate() { # deploymentDir #explorerUrl
6
6
deploymentDir=$1
7
7
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
9
9
contractName=$( basename $f .json)
10
10
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
12
18
done
13
19
}
14
20
You can’t perform that action at this time.
0 commit comments