N3developertoolkit / neo3-visual-tracker

Neo N3 blockchain explorer that is directly available within Visual Studio Code for developer usage and development scenarios.
https://marketplace.visualstudio.com/items?itemName=ngd-seattle.neo3-visual-tracker
MIT License
7 stars 11 forks source link

Change smart contract template to not use "static" keyword for class data members and methods #104

Open roschler opened 3 years ago

roschler commented 3 years ago

Currently when you create a new smart contract the N3 template for the auto-generated C# contract has all the class data elements and methods declared as static. I spoke with DevHawk and this is no longer necessary with the newer compiler. If you create any non-static class elements you will not see the static elements in the drop-down list when you invoke the Intellisense auto-complete feature in Visual Studio Code, because they are in different scopes. Currently a user who wants to declare non-static elements must do a global search and replace operation on the boilerplate smart contract created by the plugin, to delete the static keyword. Please create a future version of the plugin that does not use the static keyword for the smart contract class elements, or at least provide a plugin setting to make it optional.