Skip to content

Commit

Permalink
Merge pull request #69 from AbdeltwabMF/development
Browse files Browse the repository at this point in the history
Update deploy script
  • Loading branch information
AbdeltwabMF authored Jul 8, 2022
2 parents 7beab00 + a30fc06 commit 804c14d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
7 changes: 7 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 804c14d

@vercel
Copy link

@vercel vercel bot commented on 804c14d Jul 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

devault – ./

devault-abdeltwabmf.vercel.app
devault.vercel.app
devault-git-main-abdeltwabmf.vercel.app

Please sign in to comment.