Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch and compile before debugging #2755

Merged
merged 18 commits into from
Apr 28, 2020
Merged

Fetch and compile before debugging #2755

merged 18 commits into from
Apr 28, 2020

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Apr 20, 2020

needs ethereum/remix#1464

fix #2742

@yann300 yann300 force-pushed the fix#2742 branch 2 times, most recently from ef3dfd9 to 078977d Compare April 25, 2020 10:56
@yann300 yann300 force-pushed the fix#2742 branch 5 times, most recently from 3fff6ae to 4667990 Compare April 25, 2020 21:06
@yann300
Copy link
Collaborator Author

yann300 commented Apr 25, 2020

For testing the code,

  • activate debugger and run
  • switch to ropsten
  • in the hash input, put 0x5db1b4212e4f83e36bf5bc306888df50f01a73708a71322bdc6f39a76a7ebdaa
  • click start debugging

This will unfortunately require this PR from the remix repo ethereum/remix#1463

@yann300 yann300 force-pushed the fix#2742 branch 2 times, most recently from d9a6777 to fe79372 Compare April 27, 2020 06:25
this.debuggerUI = new DebuggerUI(this.el.querySelector('#debugger'), this.blockchain)

this.on('fetchAndCompile', 'compiling', (settings) => {
toaster(yo`<div><b>Recompiling and debugging with params</b><pre>${JSON.stringify(settings, null, '\t')}</pre></div>`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add class="text-left" to this pre to align text to the left

name === 'main' ? 'mainnet' : name // source-verifier api expect "mainnet" and not "main"
let data
try {
data = await this.call('source-verification', 'fetch', contractAddress, name.toLowerCase())
Copy link
Collaborator

@LianaHus LianaHus Apr 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the format {id:network.id, name}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LianaHus you don't need to do toLowerCase it will be handled on the API level.

@yann300 yann300 merged commit 7804425 into master Apr 28, 2020
@yann300 yann300 deleted the fix#2742 branch April 28, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ContractVerifier integration with the debugger
3 participants