1
0
mirror of https://github.com/oceanprotocol/react-tutorial synced 2024-11-25 20:00:40 +01:00
This commit is contained in:
alexcos20 2020-03-30 10:13:14 +03:00
parent 79c66240f6
commit af3e96c958

View File

@ -70,7 +70,6 @@ export default function Compute({ ocean, web3 }) {
secretStoreUri: ocean.config.secretStoreUri secretStoreUri: ocean.config.secretStoreUri
} }
console.log(ComputeOutput) console.log(ComputeOutput)
// order the compute service // order the compute service
const agreement = await ocean.compute.order(accounts[0], ddoAssetId) const agreement = await ocean.compute.order(accounts[0], ddoAssetId)
setAgreementId(agreement) setAgreementId(agreement)
@ -114,8 +113,7 @@ export default function Compute({ ocean, web3 }) {
} }
async function showDivAlgo() { async function showDivAlgo() {
const style = isAlgoInputVisible ? false : true setIsAlgoInputVisible(isAlgoInputVisible ? false : true)
setIsAlgoInputVisible(style)
} }
async function updateRawAlgoCode(event) { async function updateRawAlgoCode(event) {
@ -126,10 +124,10 @@ export default function Compute({ ocean, web3 }) {
setDdoAssetId(event.target.value) setDdoAssetId(event.target.value)
} }
async function handlePublishOutputState(event) { async function handlePublishOutputState(event) {
setPublishOutputState(!!event.target.checked) setPublishOutputState(event.target.checked)
} }
async function handlePublishLogState(event) { async function handlePublishLogState(event) {
setPublishLogState(!!event.target.checked) setPublishLogState(event.target.checked)
} }
if (!web3) { if (!web3) {