Skip to content

Commit

Permalink
fix connection with testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
kroggen committed Oct 10, 2023
1 parent a66fc3e commit d5efd5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ async function deploy_contract(contract_address, sourceCode, encodedByteCode) {
} else if (chainId == "alpha.aergo.io") {
url = "alpha-api-http.aergo.io"
}
url = 'http://' + url + ':7845'
//url = 'http://' + url + ':7845' // this does not work with testnet
url = 'https://' + url
aergo = new herajs.AergoClient({}, new herajs.GrpcWebProvider({url: url}))
}

Expand Down
3 changes: 2 additions & 1 deletion bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ async function deploy_contract(contract_address, sourceCode, encodedByteCode) {
} else if (chainId == "alpha.aergo.io") {
url = "alpha-api-http.aergo.io"
}
url = 'http://' + url + ':7845'
//url = 'http://' + url + ':7845' // this does not work with testnet
url = 'https://' + url
aergo = new herajs.AergoClient({}, new herajs.GrpcWebProvider({url: url}))
}

Expand Down

0 comments on commit d5efd5a

Please sign in to comment.