Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
[RAFFLE-794] SSL config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanooj0902 committed Mar 13, 2018
1 parent 310b5d5 commit 2b7a612
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/raffle/raffle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const contractName = buildContractName('Raffle')
const HTTP_PROTOCOL = document.location.protocol === "http:" ? "http" : "https";

const uploadUrl = `http://${window.location.hostname}/bloc/v2.2/users/:user/:address/contract?resolve`
const enterUrl = `http://${window.location.hostname}/bloc/v2.2/users/:username/:userAddress/contract/:contractName/:contractAddress/call?resolve`;
const uploadUrl = `${HTTP_PROTOCOL}://${window.location.hostname}/bloc/v2.2/users/:user/:address/contract?resolve`
const enterUrl = `${HTTP_PROTOCOL}://${window.location.hostname}/bloc/v2.2/users/:username/:userAddress/contract/:contractName/:contractAddress/call?resolve`;
// const raffleListUrl = `http://${window.location.hostname}/cirrus/search/Raffle?winnerAddress=eq.0000000000000000000000000000000000000000`;
// const raffleListUrlNotEqual = `http://${window.location.hostname}/cirrus/search/Raffle?winnerAddress=not.eq.0000000000000000000000000000000000000000`;
const raffleListUrlAll = `http://${window.location.hostname}/cirrus/search/${contractName}`;
const cirrusUrl = `http://${window.location.hostname}/cirrus/search`;
const compileUrl = `http://${window.location.hostname}/bloc/v2.2/contracts/compile`;
const raffleListUrlAll = `${HTTP_PROTOCOL}://${window.location.hostname}/cirrus/search/${contractName}`;
const cirrusUrl = `${HTTP_PROTOCOL}://${window.location.hostname}/cirrus/search`;
const compileUrl = `${HTTP_PROTOCOL}://${window.location.hostname}/bloc/v2.2/contracts/compile`;
const codeHash = 'a44d5968d33c8d99ef36ea6980a4151fd1fd45379a85425d55a71ccfb1860e57';

const contractSrc = `contract ${contractName} {
Expand Down

0 comments on commit 2b7a612

Please sign in to comment.