-
Notifications
You must be signed in to change notification settings - Fork 11
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
Added a <Delete Me> button to the Contract views (#133) and Provide feedback on contract with no storage (#125) #139
Conversation
Addresses issue# 124- Change color of Status Bar based on status of NEO connection
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 code addition addresses issue #125. Basically, if the name if 'StdLib', a message is returned that the contract does not contain any storage. We can add in any other smart contract names that do not contain storage as well.
return ( | ||
<div style={{ padding: 10 }}> | ||
<h1>{name}</h1> | ||
<button> Click to Delete </button> |
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.
Is there logic that gets executed when this button is pushed?
|
||
let statement; | ||
|
||
if (name === "StdLib") { |
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.
CryptoLib doesn't have any storage either
If the code isn't completely functional, then lets hold off on the PR |
In line with issue #133, added a button that can be used to delete contracts (or even chains) that are unused. Note that the button currently isn't functional. I can perhaps add an inline icon later if need be.
Note, however, it is not yet functional. I would like someone's help to write the method to destroy contracts as that is a bit beyond the scope of what I am capable of at this point (unless it entails copying and pasting what is available on the NEO docs website).
Other buttons/functionality that could consider adding to the sidebar would include a smart contract explorer, a governance enabler (voting, candidate registration), wallet functions, data science functions, fees querying, oracle querying, etc.
(Note that the other part of this pull request includes adding a close bracket that was missing from the first pull request I sent earlier).