forked from cerc-io/plugeth
natspec changes
This commit is contained in:
parent
689630d261
commit
e68f8e79ea
@ -5,6 +5,7 @@
|
|||||||
<script type="text/javascript" src="js/es6-promise/promise.min.js"></script>
|
<script type="text/javascript" src="js/es6-promise/promise.min.js"></script>
|
||||||
<script type="text/javascript" src="js/bignumber.js/bignumber.min.js"></script>
|
<script type="text/javascript" src="js/bignumber.js/bignumber.min.js"></script>
|
||||||
<script type="text/javascript" src="../dist/ethereum.js"></script>
|
<script type="text/javascript" src="../dist/ethereum.js"></script>
|
||||||
|
<script type="text/javascript" src="../../natspec.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var web3 = require('web3');
|
var web3 = require('web3');
|
||||||
@ -13,7 +14,7 @@
|
|||||||
// solidity source code
|
// solidity source code
|
||||||
var source = "" +
|
var source = "" +
|
||||||
"contract test {\n" +
|
"contract test {\n" +
|
||||||
" /// @notice Will multiplty `a` by 7. \n" +
|
" /// @notice Will multiply `a` by 7. \n" +
|
||||||
" function multiply(uint a) returns(uint d) {\n" +
|
" function multiply(uint a) returns(uint d) {\n" +
|
||||||
" return a * 7;\n" +
|
" return a * 7;\n" +
|
||||||
" }\n" +
|
" }\n" +
|
||||||
@ -21,7 +22,7 @@
|
|||||||
|
|
||||||
// contract description, this will be autogenerated somehow
|
// contract description, this will be autogenerated somehow
|
||||||
var desc = [{
|
var desc = [{
|
||||||
"name": "multiply",
|
"name": "multiply(uint256)",
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
"name": "a",
|
"name": "a",
|
||||||
|
Loading…
Reference in New Issue
Block a user