From 5cad3f0b21ceb4d04e78b5ac2dfa2139eef74aea Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 27 Mar 2020 15:36:50 +0000 Subject: [PATCH] Added quotes to contract name --- src/app/tabs/compile-tab.js | 4 ++-- test-browser/tests/publishContract.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 799ac71e48..9ade0a943e 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -332,7 +332,7 @@ class CompileTab extends ViewPlugin { var result = yo`
${uploaded.map((value) => { return yo`
${value.filename} :
${value.output.url}
` })}
` - modalDialogCustom.alert(`Published ${contract.name} Metadata`, yo`Metadata of ${contract.name.toLowerCase()} contract was published successfully.
${result}
`) + modalDialogCustom.alert(`Published "${contract.name}" Metadata`, yo`Metadata of ${contract.name.toLowerCase()} was published successfully.
${result}
`) } }, (item) => { // triggered each time there's a new verified publish (means hash correspond) this.fileProvider.addExternal('swarm/' + item.hash, item.content) @@ -349,7 +349,7 @@ class CompileTab extends ViewPlugin { var result = yo`
${uploaded.map((value) => { return yo`
${value.filename} :
${value.output.url}
` })}
` - modalDialogCustom.alert(`Published ${contract.name} Metadata`, yo`Metadata of ${contract.name.toLowerCase()} contract was published successfully.
${result}
`) + modalDialogCustom.alert(`Published "${contract.name}" Metadata`, yo`Metadata of ${contract.name.toLowerCase()} was published successfully.
${result}
`) } }, (item) => { // triggered each time there's a new verified publish (means hash correspond) this.fileProvider.addExternal('ipfs/' + item.hash, item.content) diff --git a/test-browser/tests/publishContract.js b/test-browser/tests/publishContract.js index 36fe03e650..dd8b14dfa7 100644 --- a/test-browser/tests/publishContract.js +++ b/test-browser/tests/publishContract.js @@ -17,7 +17,7 @@ module.exports = { .verifyContracts(['Ballot']) .click('#publishOnIpfs') .getModalBody((value, done) => { - if (value.indexOf('Metadata of ballot contract was published successfully.') === -1) browser.assert.fail('ipfs deploy failed', '', '') + if (value.indexOf('Metadata of ballot was published successfully.') === -1) browser.assert.fail('ipfs deploy failed', '', '') if (value.indexOf('dweb:/ipfs') === -1) browser.assert.fail('ipfs deploy failed', '', '') done() }) @@ -28,7 +28,7 @@ module.exports = { browser .click('#publishOnSwarm') .getModalBody((value, done) => { - if (value.indexOf('Metadata published successfully.') === -1) browser.assert.fail('swarm deploy failed', '', '') + if (value.indexOf('Metadata of ballot was successfully.') === -1) browser.assert.fail('swarm deploy failed', '', '') if (value.indexOf('bzz') === -1) browser.assert.fail('swarm deploy failed', '', '') done() })