Skip to content

Commit

Permalink
Fix managed deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Man-Jain authored Jul 19, 2023
1 parent 8ab486d commit 9459680
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/services/contracts/baseDAO/hooks/useOriginate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,6 @@ export const useOriginate = (template: DAOTemplate) => {
async ({ metadataParams, params }) => {
const updatedStates = INITIAL_STATES

const deployParams: any = {
params: { ...params },
metadataParams: { ...metadataParams }
}

if (network !== "mainnet") {
const resp = await fetch("http://localhost:3001/deploy", {
method: "POST",
body: JSON.stringify({ deployParams: deployParams }, replacer),
headers: { "Content-Type": "application/json" }
})

const data = await resp.json()
console.log("data: ", data)
const contract = data.contract
console.log("contract: ", contract)

return contract
}

updatedStates[0] = {
activeText: "Deploying Metadata Carrier Contract",
completedText: ""
Expand Down

0 comments on commit 9459680

Please sign in to comment.