sepolia-deploy token addr bugfix
This commit is contained in:
@@ -61,7 +61,12 @@ contract() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
token() {
|
token() {
|
||||||
address "$(jq -r ".transactions[] | select(.contractName == \"MockERC20\" and .transactionType == \"CREATE\" and (.arguments | contains([\"$1\"]))) | .contractAddress" broadcast/${DEPLOY_SCRIPT}.sol/${CHAINID}/run-latest.json)"
|
local addr
|
||||||
|
addr=$(address "$(jq -r ".transactions[] | select(.contractName == \"MockERC20\" and .transactionType == \"CREATE\" and (.arguments | contains([\"$1\"]))) | .contractAddress" broadcast/${DEPLOY_SCRIPT}.sol/${CHAINID}/run-latest.json)")
|
||||||
|
if [ -z "$addr" ]; then
|
||||||
|
addr=$(jq -r ".[\"${CHAINID}\"].v1[\"$1\"]" ./deployment/liqp-deployments.json)
|
||||||
|
fi
|
||||||
|
echo "$addr"
|
||||||
}
|
}
|
||||||
|
|
||||||
PARTY_PLANNER=$(contract PartyPlanner)
|
PARTY_PLANNER=$(contract PartyPlanner)
|
||||||
|
|||||||
Reference in New Issue
Block a user