|
|
@ -443,7 +443,6 @@ export const createInstance = async ( |
|
|
|
return terminalLogger(log) |
|
|
|
return terminalLogger(log) |
|
|
|
} |
|
|
|
} |
|
|
|
addInstance({ contractData: contractObject, address, name: contractObject.name }) |
|
|
|
addInstance({ contractData: contractObject, address, name: contractObject.name }) |
|
|
|
|
|
|
|
|
|
|
|
const data = plugin.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) |
|
|
|
const data = plugin.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) |
|
|
|
|
|
|
|
|
|
|
|
plugin.compilersArtefacts.addResolvedContract(addressToString(address), data) |
|
|
|
plugin.compilersArtefacts.addResolvedContract(addressToString(address), data) |
|
|
@ -453,6 +452,11 @@ export const createInstance = async ( |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
_paq.push(['trackEvent', 'udapp', 'DeployOnly', plugin.REACT_API.networkName]) |
|
|
|
_paq.push(['trackEvent', 'udapp', 'DeployOnly', plugin.REACT_API.networkName]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
deployMode.forEach(async (mode) => { |
|
|
|
|
|
|
|
const owner = plugin.REACT_API.accounts.selectedAccount |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mode === 'Deploy with Proxy') await plugin.call('openzeppelin-proxy', 'execute', address, owner) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let contractMetadata |
|
|
|
let contractMetadata |
|
|
@ -483,17 +487,16 @@ export const createInstance = async ( |
|
|
|
return terminalLogger(log) |
|
|
|
return terminalLogger(log) |
|
|
|
})) |
|
|
|
})) |
|
|
|
} |
|
|
|
} |
|
|
|
await plugin.call('openzeppelin-proxy', 'execute') |
|
|
|
deployContract(selectedContract, args, contractMetadata, compilerContracts, { |
|
|
|
// deployContract(selectedContract, args, contractMetadata, compilerContracts, {
|
|
|
|
continueCb: (error, continueTxExecution, cancelCb) => { |
|
|
|
// continueCb: (error, continueTxExecution, cancelCb) => {
|
|
|
|
continueHandler(gasEstimationPrompt, error, continueTxExecution, cancelCb) |
|
|
|
// continueHandler(gasEstimationPrompt, error, continueTxExecution, cancelCb)
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
promptCb: (okCb, cancelCb) => { |
|
|
|
// promptCb: (okCb, cancelCb) => {
|
|
|
|
promptHandler(passphrasePrompt, okCb, cancelCb) |
|
|
|
// promptHandler(passphrasePrompt, okCb, cancelCb)
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
statusCb, |
|
|
|
// statusCb,
|
|
|
|
finalCb |
|
|
|
// finalCb
|
|
|
|
}, confirmationCb) |
|
|
|
// }, confirmationCb)
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const deployContract = (selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb) => { |
|
|
|
const deployContract = (selectedContract, args, contractMetadata, compilerContracts, callbacks, confirmationCb) => { |
|
|
|