You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when renaming a contract while the Interact window is open leads to broken session.
Steps to reproduce
Create a New project from Hello World template
Expand HelloWorld.sol file
Deploy project
Click Interact
Click Configure
In the Edit Contract window, rename the project
Save
Expected result
No errors
Actual result
The following error appears in the browser console output:
Uncaught TypeError: Cannot read property 'get' of undefined
Hint
In render2 function inside src/components/projecteditor/contractinteraction.js, add the following code after const contract declaration:
// Early return when contract is missing, likely due to a recent rename
if(!contract){
this.writeContent(1, "Missing file(s), contract not deployed?");
return;
}
The text was updated successfully, but these errors were encountered:
filippsen
changed the title
TypeError when renaming contract while Show Preview window is open
TypeError when renaming contract while Interact window is open
Sep 11, 2018
Environment/Browser
Lab 1.0.0 with file renaming enabled
Description
Error when renaming a contract while the Interact window is open leads to broken session.
Steps to reproduce
Expected result
No errors
Actual result
The following error appears in the browser console output:
Hint
In
render2
function insidesrc/components/projecteditor/contractinteraction.js
, add the following code afterconst contract
declaration:The text was updated successfully, but these errors were encountered: