diff --git a/client/index.html b/client/index.html
new file mode 100644
index 0000000..4bfce95
--- /dev/null
+++ b/client/index.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+ React App
+
+
+
+
+
+
+
diff --git a/client/src/App.js b/client/src/App.js
index 162a2fd..1e481fc 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -42,7 +42,8 @@ class App extends Component {
await contract.methods.set(5).send({ from: accounts[0] });
// Get the value from the contract to prove it worked.
- const response = await contract.methods.get().call();
+ const response = await contract.methods.getm().call();
+ //console.log(response+"lll")
// Update state with the result.
this.setState({ storageValue: response });
diff --git a/client/src/contracts/Migrations.json b/client/src/contracts/Migrations.json
index b9ba5d7..43aec2b 100644
--- a/client/src/contracts/Migrations.json
+++ b/client/src/contracts/Migrations.json
@@ -1376,7 +1376,7 @@
}
},
"schemaVersion": "3.0.11",
- "updatedAt": "2019-08-03T06:03:27.624Z",
+ "updatedAt": "2019-08-03T08:34:03.988Z",
"devdoc": {
"methods": {}
},
diff --git a/client/src/contracts/SimpleStorage.json b/client/src/contracts/SimpleStorage.json
index e8ba48b..65653d7 100644
--- a/client/src/contracts/SimpleStorage.json
+++ b/client/src/contracts/SimpleStorage.json
@@ -28,23 +28,37 @@
"payable": false,
"stateMutability": "view",
"type": "function"
+ },
+ {
+ "constant": true,
+ "inputs": [],
+ "name": "getm",
+ "outputs": [
+ {
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "payable": false,
+ "stateMutability": "view",
+ "type": "function"
}
],
- "metadata": "{\"compiler\":{\"version\":\"0.5.8+commit.23d335f2\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"x\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/kai/development/react/contracts/SimpleStorage.sol\":\"SimpleStorage\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/kai/development/react/contracts/SimpleStorage.sol\":{\"keccak256\":\"0x27a650f3e92e6057b3f1239be6fc335fb57d75c570d7274d8902eb0b04e48014\",\"urls\":[\"bzzr://72f63578772843cf2f8ae2bce4a69c027cbfe7f3e04cc4af14ca023bdc3c35c2\"]}},\"version\":1}",
- "bytecode": "0x608060405234801561001057600080fd5b5060bd8061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806360fe47b11460375780636d4ce63c146062575b600080fd5b606060048036036020811015604b57600080fd5b8101908080359060200190929190505050607e565b005b60686088565b6040518082815260200191505060405180910390f35b8060008190555050565b6000805490509056fea165627a7a723058201eaaff9d4ac2235193fe1c751faf5abd252748237dd8cf6d0b4579674bf0e9bc0029",
- "deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806360fe47b11460375780636d4ce63c146062575b600080fd5b606060048036036020811015604b57600080fd5b8101908080359060200190929190505050607e565b005b60686088565b6040518082815260200191505060405180910390f35b8060008190555050565b6000805490509056fea165627a7a723058201eaaff9d4ac2235193fe1c751faf5abd252748237dd8cf6d0b4579674bf0e9bc0029",
- "sourceMap": "25:176:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:176:1;;;;;;;",
- "deployedSourceMap": "25:176:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:176:1;;;;;;;;;;;;;;;;;;;;;;;;72:53;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;72:53:1;;;;;;;;;;;;;;;;;:::i;:::-;;129:70;;;:::i;:::-;;;;;;;;;;;;;;;;;;;72:53;119:1;106:10;:14;;;;72:53;:::o;129:70::-;165:4;184:10;;177:17;;129:70;:::o",
- "source": "pragma solidity ^0.5.0;\n\ncontract SimpleStorage {\n uint storedData;\n\n function set(uint x) public {\n storedData = x;\n }\n\n function get() public view returns (uint) {\n return storedData;\n }\n}\n",
+ "metadata": "{\"compiler\":{\"version\":\"0.5.8+commit.23d335f2\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"x\",\"type\":\"uint256\"}],\"name\":\"set\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"get\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getm\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/kai/development/react/contracts/SimpleStorage.sol\":\"SimpleStorage\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/kai/development/react/contracts/SimpleStorage.sol\":{\"keccak256\":\"0xb75e2ff14a167eef4062fd0789072b565d421ee15b6851d8060daaa321385db6\",\"urls\":[\"bzzr://125107aaa955264ad975b4a9bfc93ff9644de66237263f17152f9dd583932bcd\"]}},\"version\":1}",
+ "bytecode": "0x60806040526040518060400160405280600c81526020017f776f726b6b6b6b6b6b6b6b6b00000000000000000000000000000000000000008152506001908051906020019061004f929190610062565b5034801561005c57600080fd5b50610107565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100a357805160ff19168380011785556100d1565b828001600101855582156100d1579182015b828111156100d05782518255916020019190600101906100b5565b5b5090506100de91906100e2565b5090565b61010491905b808211156101005760008160009055506001016100e8565b5090565b90565b6101f6806101166000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806360fe47b1146100465780636d4ce63c14610074578063785d06f514610092575b600080fd5b6100726004803603602081101561005c57600080fd5b8101908080359060200190929190505050610115565b005b61007c61011f565b6040518082815260200191505060405180910390f35b61009a610128565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100da5780820151818401526020810190506100bf565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b8060008190555050565b60008054905090565b606060018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101c05780601f10610195576101008083540402835291602001916101c0565b820191906000526020600020905b8154815290600101906020018083116101a357829003601f168201915b505050505090509056fea165627a7a7230582069de137f2927b4300e0184b13c9190c76d02d4114ba9012e86df52b59743498c0029",
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806360fe47b1146100465780636d4ce63c14610074578063785d06f514610092575b600080fd5b6100726004803603602081101561005c57600080fd5b8101908080359060200190929190505050610115565b005b61007c61011f565b6040518082815260200191505060405180910390f35b61009a610128565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100da5780820151818401526020810190506100bf565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b8060008190555050565b60008054905090565b606060018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101c05780601f10610195576101008083540402835291602001916101c0565b820191906000526020600020905b8154815290600101906020018083116101a357829003601f168201915b505050505090509056fea165627a7a7230582069de137f2927b4300e0184b13c9190c76d02d4114ba9012e86df52b59743498c0029",
+ "sourceMap": "25:283:1:-;;;71:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25:283;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:283:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;",
+ "deployedSourceMap": "25:283:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25:283:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102:53;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;102:53:1;;;;;;;;;;;;;;;;;:::i;:::-;;159:70;;;:::i;:::-;;;;;;;;;;;;;;;;;;;232:74;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;232:74:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102:53;149:1;136:10;:14;;;;102:53;:::o;159:70::-;195:4;214:10;;207:17;;159:70;:::o;232:74::-;269:13;297:4;290:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;232:74;:::o",
+ "source": "pragma solidity ^0.5.0;\n\ncontract SimpleStorage {\n uint storedData;\n string mess=\"workkkkkkkkk\";\n\n function set(uint x) public {\n storedData = x;\n }\n\n function get() public view returns (uint) {\n return storedData;\n }\n function getm() public view returns (string memory) {\n return mess;\n }\n}\n",
"sourcePath": "/home/kai/development/react/contracts/SimpleStorage.sol",
"ast": {
"absolutePath": "/home/kai/development/react/contracts/SimpleStorage.sol",
"exportedSymbols": {
"SimpleStorage": [
- 79
+ 90
]
},
- "id": 80,
+ "id": 91,
"nodeType": "SourceUnit",
"nodes": [
{
@@ -64,9 +78,9 @@
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
- "id": 79,
+ "id": 90,
"linearizedBaseContracts": [
- 79
+ 90
],
"name": "SimpleStorage",
"nodeType": "ContractDefinition",
@@ -76,7 +90,7 @@
"id": 60,
"name": "storedData",
"nodeType": "VariableDeclaration",
- "scope": 79,
+ "scope": 90,
"src": "52:15:1",
"stateVariable": true,
"storageLocation": "default",
@@ -97,28 +111,71 @@
"value": null,
"visibility": "internal"
},
+ {
+ "constant": false,
+ "id": 63,
+ "name": "mess",
+ "nodeType": "VariableDeclaration",
+ "scope": 90,
+ "src": "71:26:1",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 61,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "71:6:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "value": {
+ "argumentTypes": null,
+ "hexValue": "776f726b6b6b6b6b6b6b6b6b",
+ "id": 62,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "83:14:1",
+ "subdenomination": null,
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_2fc34cdbfd004801d7cf008b08a422c4d9b0bf27c8d896b9a515e8cfd758b37d",
+ "typeString": "literal_string \"workkkkkkkkk\""
+ },
+ "value": "workkkkkkkkk"
+ },
+ "visibility": "internal"
+ },
{
"body": {
- "id": 69,
+ "id": 72,
"nodeType": "Block",
- "src": "100:25:1",
+ "src": "130:25:1",
"statements": [
{
"expression": {
"argumentTypes": null,
- "id": 67,
+ "id": 70,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
- "id": 65,
+ "id": 68,
"name": "storedData",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 60,
- "src": "106:10:1",
+ "src": "136:10:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -128,47 +185,47 @@
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
- "id": 66,
+ "id": 69,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
- "referencedDeclaration": 62,
- "src": "119:1:1",
+ "referencedDeclaration": 65,
+ "src": "149:1:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "src": "106:14:1",
+ "src": "136:14:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "id": 68,
+ "id": 71,
"nodeType": "ExpressionStatement",
- "src": "106:14:1"
+ "src": "136:14:1"
}
]
},
"documentation": null,
- "id": 70,
+ "id": 73,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "set",
"nodeType": "FunctionDefinition",
"parameters": {
- "id": 63,
+ "id": 66,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
- "id": 62,
+ "id": 65,
"name": "x",
"nodeType": "VariableDeclaration",
- "scope": 70,
- "src": "85:6:1",
+ "scope": 73,
+ "src": "115:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@@ -176,10 +233,10 @@
"typeString": "uint256"
},
"typeName": {
- "id": 61,
+ "id": 64,
"name": "uint",
"nodeType": "ElementaryTypeName",
- "src": "85:4:1",
+ "src": "115:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -189,71 +246,71 @@
"visibility": "internal"
}
],
- "src": "84:8:1"
+ "src": "114:8:1"
},
"returnParameters": {
- "id": 64,
+ "id": 67,
"nodeType": "ParameterList",
"parameters": [],
- "src": "100:0:1"
+ "src": "130:0:1"
},
- "scope": 79,
- "src": "72:53:1",
+ "scope": 90,
+ "src": "102:53:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
- "id": 77,
+ "id": 80,
"nodeType": "Block",
- "src": "171:28:1",
+ "src": "201:28:1",
"statements": [
{
"expression": {
"argumentTypes": null,
- "id": 75,
+ "id": 78,
"name": "storedData",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 60,
- "src": "184:10:1",
+ "src": "214:10:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "functionReturnParameters": 74,
- "id": 76,
+ "functionReturnParameters": 77,
+ "id": 79,
"nodeType": "Return",
- "src": "177:17:1"
+ "src": "207:17:1"
}
]
},
"documentation": null,
- "id": 78,
+ "id": 81,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "get",
"nodeType": "FunctionDefinition",
"parameters": {
- "id": 71,
+ "id": 74,
"nodeType": "ParameterList",
"parameters": [],
- "src": "141:2:1"
+ "src": "171:2:1"
},
"returnParameters": {
- "id": 74,
+ "id": 77,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
- "id": 73,
+ "id": 76,
"name": "",
"nodeType": "VariableDeclaration",
- "scope": 78,
- "src": "165:4:1",
+ "scope": 81,
+ "src": "195:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@@ -261,10 +318,10 @@
"typeString": "uint256"
},
"typeName": {
- "id": 72,
+ "id": 75,
"name": "uint",
"nodeType": "ElementaryTypeName",
- "src": "165:4:1",
+ "src": "195:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -274,29 +331,108 @@
"visibility": "internal"
}
],
- "src": "164:6:1"
+ "src": "194:6:1"
+ },
+ "scope": 90,
+ "src": "159:70:1",
+ "stateMutability": "view",
+ "superFunction": null,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 88,
+ "nodeType": "Block",
+ "src": "284:22:1",
+ "statements": [
+ {
+ "expression": {
+ "argumentTypes": null,
+ "id": 86,
+ "name": "mess",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 63,
+ "src": "297:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 85,
+ "id": 87,
+ "nodeType": "Return",
+ "src": "290:11:1"
+ }
+ ]
+ },
+ "documentation": null,
+ "id": 89,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getm",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 82,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "245:2:1"
+ },
+ "returnParameters": {
+ "id": 85,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 84,
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 89,
+ "src": "269:13:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 83,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "269:6:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "value": null,
+ "visibility": "internal"
+ }
+ ],
+ "src": "268:15:1"
},
- "scope": 79,
- "src": "129:70:1",
+ "scope": 90,
+ "src": "232:74:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
- "scope": 80,
- "src": "25:176:1"
+ "scope": 91,
+ "src": "25:283:1"
}
],
- "src": "0:202:1"
+ "src": "0:309:1"
},
"legacyAST": {
"absolutePath": "/home/kai/development/react/contracts/SimpleStorage.sol",
"exportedSymbols": {
"SimpleStorage": [
- 79
+ 90
]
},
- "id": 80,
+ "id": 91,
"nodeType": "SourceUnit",
"nodes": [
{
@@ -316,9 +452,9 @@
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
- "id": 79,
+ "id": 90,
"linearizedBaseContracts": [
- 79
+ 90
],
"name": "SimpleStorage",
"nodeType": "ContractDefinition",
@@ -328,7 +464,7 @@
"id": 60,
"name": "storedData",
"nodeType": "VariableDeclaration",
- "scope": 79,
+ "scope": 90,
"src": "52:15:1",
"stateVariable": true,
"storageLocation": "default",
@@ -349,28 +485,71 @@
"value": null,
"visibility": "internal"
},
+ {
+ "constant": false,
+ "id": 63,
+ "name": "mess",
+ "nodeType": "VariableDeclaration",
+ "scope": 90,
+ "src": "71:26:1",
+ "stateVariable": true,
+ "storageLocation": "default",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 61,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "71:6:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "value": {
+ "argumentTypes": null,
+ "hexValue": "776f726b6b6b6b6b6b6b6b6b",
+ "id": 62,
+ "isConstant": false,
+ "isLValue": false,
+ "isPure": true,
+ "kind": "string",
+ "lValueRequested": false,
+ "nodeType": "Literal",
+ "src": "83:14:1",
+ "subdenomination": null,
+ "typeDescriptions": {
+ "typeIdentifier": "t_stringliteral_2fc34cdbfd004801d7cf008b08a422c4d9b0bf27c8d896b9a515e8cfd758b37d",
+ "typeString": "literal_string \"workkkkkkkkk\""
+ },
+ "value": "workkkkkkkkk"
+ },
+ "visibility": "internal"
+ },
{
"body": {
- "id": 69,
+ "id": 72,
"nodeType": "Block",
- "src": "100:25:1",
+ "src": "130:25:1",
"statements": [
{
"expression": {
"argumentTypes": null,
- "id": 67,
+ "id": 70,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
- "id": 65,
+ "id": 68,
"name": "storedData",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 60,
- "src": "106:10:1",
+ "src": "136:10:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -380,47 +559,47 @@
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
- "id": 66,
+ "id": 69,
"name": "x",
"nodeType": "Identifier",
"overloadedDeclarations": [],
- "referencedDeclaration": 62,
- "src": "119:1:1",
+ "referencedDeclaration": 65,
+ "src": "149:1:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "src": "106:14:1",
+ "src": "136:14:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "id": 68,
+ "id": 71,
"nodeType": "ExpressionStatement",
- "src": "106:14:1"
+ "src": "136:14:1"
}
]
},
"documentation": null,
- "id": 70,
+ "id": 73,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "set",
"nodeType": "FunctionDefinition",
"parameters": {
- "id": 63,
+ "id": 66,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
- "id": 62,
+ "id": 65,
"name": "x",
"nodeType": "VariableDeclaration",
- "scope": 70,
- "src": "85:6:1",
+ "scope": 73,
+ "src": "115:6:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@@ -428,10 +607,10 @@
"typeString": "uint256"
},
"typeName": {
- "id": 61,
+ "id": 64,
"name": "uint",
"nodeType": "ElementaryTypeName",
- "src": "85:4:1",
+ "src": "115:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -441,71 +620,71 @@
"visibility": "internal"
}
],
- "src": "84:8:1"
+ "src": "114:8:1"
},
"returnParameters": {
- "id": 64,
+ "id": 67,
"nodeType": "ParameterList",
"parameters": [],
- "src": "100:0:1"
+ "src": "130:0:1"
},
- "scope": 79,
- "src": "72:53:1",
+ "scope": 90,
+ "src": "102:53:1",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
},
{
"body": {
- "id": 77,
+ "id": 80,
"nodeType": "Block",
- "src": "171:28:1",
+ "src": "201:28:1",
"statements": [
{
"expression": {
"argumentTypes": null,
- "id": 75,
+ "id": 78,
"name": "storedData",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 60,
- "src": "184:10:1",
+ "src": "214:10:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
- "functionReturnParameters": 74,
- "id": 76,
+ "functionReturnParameters": 77,
+ "id": 79,
"nodeType": "Return",
- "src": "177:17:1"
+ "src": "207:17:1"
}
]
},
"documentation": null,
- "id": 78,
+ "id": 81,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "get",
"nodeType": "FunctionDefinition",
"parameters": {
- "id": 71,
+ "id": 74,
"nodeType": "ParameterList",
"parameters": [],
- "src": "141:2:1"
+ "src": "171:2:1"
},
"returnParameters": {
- "id": 74,
+ "id": 77,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
- "id": 73,
+ "id": 76,
"name": "",
"nodeType": "VariableDeclaration",
- "scope": 78,
- "src": "165:4:1",
+ "scope": 81,
+ "src": "195:4:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@@ -513,10 +692,10 @@
"typeString": "uint256"
},
"typeName": {
- "id": 72,
+ "id": 75,
"name": "uint",
"nodeType": "ElementaryTypeName",
- "src": "165:4:1",
+ "src": "195:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@@ -526,20 +705,99 @@
"visibility": "internal"
}
],
- "src": "164:6:1"
+ "src": "194:6:1"
+ },
+ "scope": 90,
+ "src": "159:70:1",
+ "stateMutability": "view",
+ "superFunction": null,
+ "visibility": "public"
+ },
+ {
+ "body": {
+ "id": 88,
+ "nodeType": "Block",
+ "src": "284:22:1",
+ "statements": [
+ {
+ "expression": {
+ "argumentTypes": null,
+ "id": 86,
+ "name": "mess",
+ "nodeType": "Identifier",
+ "overloadedDeclarations": [],
+ "referencedDeclaration": 63,
+ "src": "297:4:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage",
+ "typeString": "string storage ref"
+ }
+ },
+ "functionReturnParameters": 85,
+ "id": 87,
+ "nodeType": "Return",
+ "src": "290:11:1"
+ }
+ ]
+ },
+ "documentation": null,
+ "id": 89,
+ "implemented": true,
+ "kind": "function",
+ "modifiers": [],
+ "name": "getm",
+ "nodeType": "FunctionDefinition",
+ "parameters": {
+ "id": 82,
+ "nodeType": "ParameterList",
+ "parameters": [],
+ "src": "245:2:1"
+ },
+ "returnParameters": {
+ "id": 85,
+ "nodeType": "ParameterList",
+ "parameters": [
+ {
+ "constant": false,
+ "id": 84,
+ "name": "",
+ "nodeType": "VariableDeclaration",
+ "scope": 89,
+ "src": "269:13:1",
+ "stateVariable": false,
+ "storageLocation": "memory",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_memory_ptr",
+ "typeString": "string"
+ },
+ "typeName": {
+ "id": 83,
+ "name": "string",
+ "nodeType": "ElementaryTypeName",
+ "src": "269:6:1",
+ "typeDescriptions": {
+ "typeIdentifier": "t_string_storage_ptr",
+ "typeString": "string"
+ }
+ },
+ "value": null,
+ "visibility": "internal"
+ }
+ ],
+ "src": "268:15:1"
},
- "scope": 79,
- "src": "129:70:1",
+ "scope": 90,
+ "src": "232:74:1",
"stateMutability": "view",
"superFunction": null,
"visibility": "public"
}
],
- "scope": 80,
- "src": "25:176:1"
+ "scope": 91,
+ "src": "25:283:1"
}
],
- "src": "0:202:1"
+ "src": "0:309:1"
},
"compiler": {
"name": "solc",
@@ -550,11 +808,11 @@
"events": {},
"links": {},
"address": "0xBbd26995333bF7468b5318840b5D4C00E568a4DC",
- "transactionHash": "0xd65efd0195b33a7b8af40a1164ac82224f7ab297b3043643a8ff6bb22ecad823"
+ "transactionHash": "0xd18f3d8c85266a0181f79cd1db973eb8e87e83bef7b5f39afd9ae8e0ce4a92ee"
}
},
"schemaVersion": "3.0.11",
- "updatedAt": "2019-08-03T06:03:27.622Z",
+ "updatedAt": "2019-08-03T08:34:03.986Z",
"devdoc": {
"methods": {}
},