-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add running scripts & FAS #2994
Conversation
needs links to ethers & web3 |
Still needs an update to the settings page (although this could go in another PR). Maybe needs more scripts in the FAS page. |
Settings update should go into another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is good to start with
docs/running_js_scripts.md
Outdated
1. Make sure the **Generate contract metadata** option is **checked** in the settings module. | ||
[Settings documentation](settings.html) ( ROB TODO: and make sure to update Settings.md!!!) | ||
|
||
2. **Async/await scripts do not currently work on the JSVM** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be fixed for the current release
docs/running_js_scripts.md
Outdated
|
||
4. Write the script | ||
|
||
5. To run the script - either have the script be the active file in the editor and run `remix.exeCurrent()` in the console or right click on the script in the files explorer to get the popup context menu and select the **run** option. (ROB TODO - update with an image of the context menu) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a TODO missing
(ROB TODO - update with an image of the context menu)
The example below is to deploy a solidity contract named CustomERC20.sol. That contract had been compiled and its metadata generated and put into the browser/artifacts folder. This example is using the web3.js library. Ethers.js could also be used. | ||
|
||
``` | ||
(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also be in FAS.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in there.
fixes ethereum/remix-project/issues/414