diff --git a/pages/_app.js b/pages/_app.js index 9540e99..a810790 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -23,7 +23,7 @@ export default function App ({ Component, pageProps }) { const [blockNumber, setBlockNumber] = useState(UNSET) const [balance, setBalance] = useState(UNSET) // 3 = '0x449fE6C97F4AD1d4769971F9fb1C33a64856AB73' - const contractAddress = '0x449fE6C97F4AD1d4769971F9fb1C33a64856AB73' + const contractAddress = '0x801e446103561Ac3d0eb8fC416a44917FC83a4D5' useEffect(() => { import('bootstrap/dist/js/bootstrap.min.js') diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 0fa2b3b..b9056b3 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -91,6 +91,13 @@ main() { if [[ "$network" != "localhost" ]]; then if (( $2 == 1 )); then deploy_to_network + while [[ $smart_contract_address == "" ]]; do + error "Unable to deploy the smart contracts to $network network" + warn "Please check your node is up and running and try again" + info "Retrying in 5 seconds..." + sleep 5s + deploy_to_network + done info "A new smart contract address: $(decorize_address) is cached" sed -i "s/SMART_CONTRACT_ADDRESS_ROPSTEN.*$/SMART_CONTRACT_ADDRESS_ROPSTEN=$smart_contract_address/" ./.env else