Skip to content
Merged
11 changes: 8 additions & 3 deletions .github/workflows/dapp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,16 @@ jobs:

- name: Add resource to whitelist
env:
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
run: |
cd node_modules/whitelist-smart-contract
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
if [ "${{ inputs.environment }}" = "arbitrum-sepolia-dev" ]; then
npm run addResourceToWhitelist -- --network arbitrumSepolia
else
npm run addResourceToWhitelist -- --network bellecour
fi

- name: Configure ENS
if: ${{ vars.DAPP_ENS_NAME }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/dapp-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,16 @@ jobs:

- name: Add resource to whitelist
env:
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
run: |
cd node_modules/whitelist-smart-contract
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
if [ "${{ matrix.environment }}" = "arbitrum-sepolia-prod" ]; then
npm run addResourceToWhitelist -- --network arbitrumSepolia
else
npm run addResourceToWhitelist -- --network bellecour
fi

- name: Configure ENS
if: ${{ vars.DAPP_ENS_NAME }}
Expand Down
13 changes: 10 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
"prettier": "^2.8.4",
"rimraf": "^5.0.7",
"typescript": "^4.9.5",
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#0.2.1"
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#v1.0.0"
}
}
Loading