Skip to content

Commit 9459680

Browse files
authored
Fix managed deployment
1 parent 8ab486d commit 9459680

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/services/contracts/baseDAO/hooks/useOriginate.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,6 @@ export const useOriginate = (template: DAOTemplate) => {
7272
async ({ metadataParams, params }) => {
7373
const updatedStates = INITIAL_STATES
7474

75-
const deployParams: any = {
76-
params: { ...params },
77-
metadataParams: { ...metadataParams }
78-
}
79-
80-
if (network !== "mainnet") {
81-
const resp = await fetch("http://localhost:3001/deploy", {
82-
method: "POST",
83-
body: JSON.stringify({ deployParams: deployParams }, replacer),
84-
headers: { "Content-Type": "application/json" }
85-
})
86-
87-
const data = await resp.json()
88-
console.log("data: ", data)
89-
const contract = data.contract
90-
console.log("contract: ", contract)
91-
92-
return contract
93-
}
94-
9575
updatedStates[0] = {
9676
activeText: "Deploying Metadata Carrier Contract",
9777
completedText: ""

0 commit comments

Comments
 (0)