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

Added a <Delete Me> button to the Contract views (#133) and Provide feedback on contract with no storage (#125) #139

Closed
wants to merge 10 commits into from

Conversation

robliou
Copy link

@robliou robliou commented Jun 1, 2022

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).

A8

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).

Copy link
Author

@robliou robliou left a 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.

A9

A10

@robliou robliou closed this Jun 1, 2022
@robliou robliou changed the title Added a <Delete Me> button to the Contract views Added a <Delete Me> button to the Contract views (#133) and Provide feedback on contract with no storage (#125) Jun 1, 2022
@robliou robliou reopened this Jun 1, 2022
return (
<div style={{ padding: 10 }}>
<h1>{name}</h1>
<button> Click to Delete </button>
Copy link
Contributor

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") {
Copy link
Contributor

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

@devhawk
Copy link
Contributor

devhawk commented Jun 2, 2022

If the code isn't completely functional, then lets hold off on the PR

@devhawk devhawk closed this Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants