pull/5370/head
yann300 4 years ago
parent b11f29f3e7
commit 5693fca5a1
  1. 6
      apps/remix-ide/src/app/tabs/debugger-tab.js
  2. 2
      apps/remix-ide/src/app/ui/landing-page/landing-page.js

@ -22,7 +22,6 @@ const profile = {
} }
class DebuggerTab extends ViewPlugin { class DebuggerTab extends ViewPlugin {
constructor (blockchain, editor, offsetToLineColumnConverter) { constructor (blockchain, editor, offsetToLineColumnConverter) {
super(profile) super(profile)
this.el = null this.el = null
@ -106,7 +105,6 @@ class DebuggerTab extends ViewPlugin {
async getTrace (hash) { async getTrace (hash) {
if (!hash) return if (!hash) return
try {
const web3 = await this.getDebugWeb3() const web3 = await this.getDebugWeb3()
const currentReceipt = await web3.eth.getTransactionReceipt(hash) const currentReceipt = await web3.eth.getTransactionReceipt(hash)
const debug = new Debugger({ const debug = new Debugger({
@ -122,11 +120,7 @@ class DebuggerTab extends ViewPlugin {
}, },
debugWithGeneratedSources: false debugWithGeneratedSources: false
}) })
return await debug.debugger.traceManager.getTrace(hash) return await debug.debugger.traceManager.getTrace(hash)
} catch (e) {
throw e
}
} }
fetchContractAndCompile (address, receipt) { fetchContractAndCompile (address, receipt) {

@ -339,7 +339,7 @@ export class LandingPage extends ViewPlugin {
document.location.reload() document.location.reload()
} }
const img = yo`<img class=${css.logoImg} src="assets/img/guitarRemiCroped.webp" onclick="${() => playRemi()}"></img>` const img = yo`<img class=${css.logoImg} src="assets/img/guitarRemiCroped.webp" onclick="${() => playRemi()}"></img>`
let playRemi = async () => { await document.getElementById('remiAudio').play() } const playRemi = async () => { await document.getElementById('remiAudio').play() }
// to retrieve medium posts // to retrieve medium posts
document.body.appendChild(yo`<script src="https://www.retainable.io/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`) document.body.appendChild(yo`<script src="https://www.retainable.io/assets/retainable/rss-embed/retainable-rss-embed.js"></script>`)
const container = yo` const container = yo`

Loading…
Cancel
Save