Skip to content

Commit

Permalink
remove unnecesary udapp params
Browse files Browse the repository at this point in the history
  • Loading branch information
iurimatias committed Jan 16, 2020
1 parent 6737ba7 commit 5dc2ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const compilersArtefacts = new CompilersArtefacts() // store all the compilation results (key represent a compiler name)
registry.put({api: compilersArtefacts, name: 'compilersartefacts'})

const {eventsDecoder, txlistener} = makeUdapp(blockchain, udapp, compilersArtefacts, (domEl) => mainview.getTerminal().logHtml(domEl))
const {eventsDecoder, txlistener} = makeUdapp(blockchain, compilersArtefacts, (domEl) => mainview.getTerminal().logHtml(domEl))
// ----------------- network service (resolve network id / name) ----------------------------
const networkModule = new NetworkModule(executionContext)
// ----------------- convert offset to line/column service ----------------------------
Expand Down
12 changes: 6 additions & 6 deletions src/app/udapp/run-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ export class RunTab extends LibraryPlugin {
this.instanceContainer.appendChild(this.noInstancesText)
}

renderSettings (udapp) {
renderSettings () {
this.settingsUI = new SettingsUI(this.blockchain, this.networkModule)

this.settingsUI.event.register('clearInstance', () => {
this.event.trigger('clearInstance', [])
})
}

renderDropdown (udappUI, fileManager, compilersArtefacts, config, editor, udapp, filePanel, logCallback) {
renderDropdown (udappUI, fileManager, compilersArtefacts, config, editor, logCallback) {
const dropdownLogic = new DropdownLogic(compilersArtefacts, config, editor, this)
this.contractDropdownUI = new ContractDropdownUI(this.blockchain, dropdownLogic, logCallback, this)

Expand All @@ -147,7 +147,7 @@ export class RunTab extends LibraryPlugin {
})
}

renderRecorder (udapp, udappUI, fileManager, config, logCallback) {
renderRecorder (udappUI, fileManager, config, logCallback) {
this.recorderCount = yo`<span>0</span>`

const recorder = new Recorder(this.blockchain, fileManager, config)
Expand Down Expand Up @@ -206,9 +206,9 @@ export class RunTab extends LibraryPlugin {
this.executionContext.listenOnLastBlock()
this.udapp.resetEnvironment()
this.renderInstanceContainer()
this.renderSettings(this.udapp)
this.renderDropdown(this.udappUI, this.fileManager, this.compilersArtefacts, this.config, this.editor, this.udapp, this.filePanel, this.logCallback)
this.renderRecorder(this.udapp, this.udappUI, this.fileManager, this.config, this.logCallback)
this.renderSettings()
this.renderDropdown(this.udappUI, this.fileManager, this.compilersArtefacts, this.config, this.editor, this.logCallback)
this.renderRecorder(this.udappUI, this.fileManager, this.config, this.logCallback)
this.renderRecorderCard()
return this.renderContainer()
}
Expand Down

0 comments on commit 5dc2ff2

Please sign in to comment.