File tree 3 files changed +13
-17
lines changed
3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,7 @@ module.exports = {
64
64
65
65
builder . push ( node . visibility . toLowerCase ( ) ) ;
66
66
67
- if ( node . payable ) {
68
- builder . push ( " payable" ) ;
69
- }
70
-
71
- if ( [ "nonpayable" , "" ] . indexOf ( node . stateMutability ) >= 0 ) {
72
- builder . push ( ` ${ node . StateMutability } ` ) ;
73
- }
67
+ builder . push ( ` ${ node . stateMutability } ` ) ;
74
68
75
69
if ( modifierList && modifierList . length ) {
76
70
builder . push ( ` ${ modifierList . join ( " " ) } ` ) ;
Original file line number Diff line number Diff line change @@ -20,13 +20,6 @@ const logger = pino({
20
20
3. Do not recompile. Optional, default: false.
21
21
4. Language. Optional, default: en.
22
22
*************************************************************************************************/
23
- const args = process . argv ;
24
-
25
- if ( args . length > 6 ) {
26
- logger . error ( `Invalid command ${ process . argv . join ( " " ) } ` ) ;
27
- return ;
28
- }
29
-
30
23
function getConfig ( ) {
31
24
function readConfig ( ) {
32
25
const file = path . join ( process . cwd ( ) , "solidoc.json" ) ;
@@ -42,14 +35,23 @@ function getConfig() {
42
35
} ;
43
36
44
37
var config = readConfig ( ) ;
38
+ const args = process . argv ;
39
+
40
+ if ( args . length > 6 ) {
41
+ logger . error ( `Invalid command ${ process . argv . join ( " " ) } ` ) ;
42
+ return ;
43
+ }
45
44
46
45
if ( args . length > 2 ) {
47
- config . pathToRoot = resolve ( args [ 2 ] ) ;
48
- config . outputPath = resolve ( args [ 3 ] ) ;
46
+ config . pathToRoot = args [ 2 ] ;
47
+ config . outputPath = args [ 3 ] ;
49
48
config . noCompilation = ( args [ 4 ] || "" ) . toLowerCase ( ) . startsWith ( "t" ) ;
50
49
config . language = args [ 5 ] || "en" ;
51
50
}
52
51
52
+ config . pathToRoot = resolve ( config . pathToRoot ) ;
53
+ config . outputPath = resolve ( config . outputPath ) ;
54
+
53
55
return config ;
54
56
}
55
57
Original file line number Diff line number Diff line change 1
1
{
2
2
"pathToRoot" : " ../openzeppelin-solidity" ,
3
3
"outputPath" : " ../openzeppelin-solidity/docs" ,
4
- "noCompilation" : false ,
4
+ "noCompilation" : true ,
5
5
"compiler" : " truffle compile" ,
6
6
"language" : " en"
7
7
}
You can’t perform that action at this time.
0 commit comments