This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uint256 myvar = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const x = 5; | |
| x = 6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parser.visit(ast, { | |
| FunctionDefinition: function(node) { | |
| console.log(node) | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| variableDeclaration | |
| : typeName storageLocation? identifier ; | |
| typeName | |
| : elementaryTypeName | |
| | userDefinedTypeName | |
| | mapping | |
| | typeName '[' expression? ']' | |
| | functionTypeName | |
| | 'address' 'payable' ; | |
| elementaryTypeName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** @dev This is the Sum contract. | |
| * @title Sum Contract | |
| * @author username | |
| */ | |
| contract Sum { | |
| /** | |
| * @dev This method transfer fund to other user | |
| * @param from the address extract funds | |
| * @param to the user address to give funds | |
| * @param amount the amount to transfer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type":"SourceUnit", | |
| "children":[ | |
| { | |
| "type":"ContractDefinition", | |
| "natspec":{ | |
| "dev":"This is the Sum contract.", | |
| "title":"Sum Contract", | |
| "author":"username" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type":"SourceUnit", | |
| "children":[ | |
| { | |
| "type":"ContractDefinition", | |
| "natspec":{ | |
| "dev":"This is the Sum contract.", | |
| "title":"Sum Contract", | |
| "author":"username" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // initialize notify | |
| const notify = Notify(options) | |
| // get users' account address | |
| const accounts = await window.ethereum.enable() | |
| // send a transaction | |
| web3.eth | |
| .sendTransaction({ | |
| from: accounts[0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| handleSubmit = (event) => { | |
| const { MyToken, transferAmount, transferTo, userAccount } = this.state; | |
| MyToken.transfer(transferTo, transferAmount, { from: userAccount }); | |
| event.preventDefault(); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git submodule update --init --recursive | |
| git submodule update --recursive --remote |