File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ tape('Compilation', function (t) {
79
79
80
80
var input = {
81
81
'language' : 'Solidity' ,
82
+ 'settings' : {
83
+ 'outputSelection' : {
84
+ '*' : {
85
+ '*' : [ 'evm.bytecode' ]
86
+ }
87
+ }
88
+ } ,
82
89
'sources' : {
83
90
'lib.sol' : {
84
91
'content' : 'library L { function f() returns (uint) { return 7; } }'
@@ -105,6 +112,13 @@ tape('Compilation', function (t) {
105
112
t . test ( 'invalid source code fails properly with standard JSON' , function ( st ) {
106
113
var input = {
107
114
'language' : 'Solidity' ,
115
+ 'settings' : {
116
+ 'outputSelection' : {
117
+ '*' : {
118
+ '*' : [ 'evm.bytecode' ]
119
+ }
120
+ }
121
+ } ,
108
122
'sources' : {
109
123
'x.sol' : {
110
124
'content' : 'contract x { this is an invalid contract }'
@@ -132,6 +146,13 @@ tape('Compilation', function (t) {
132
146
133
147
var input = {
134
148
'language' : 'Solidity' ,
149
+ 'settings' : {
150
+ 'outputSelection' : {
151
+ '*' : {
152
+ '*' : [ 'evm.bytecode' ]
153
+ }
154
+ }
155
+ } ,
135
156
'sources' : {
136
157
'cont.sol' : {
137
158
'content' : 'import "lib.sol"; contract x { function g() { L.f(); } }'
@@ -163,6 +184,13 @@ tape('Compilation', function (t) {
163
184
t . test ( 'compiling standard JSON (using wrapper)' , function ( st ) {
164
185
var input = {
165
186
'language' : 'Solidity' ,
187
+ 'settings' : {
188
+ 'outputSelection' : {
189
+ '*' : {
190
+ '*' : [ 'evm.bytecode' ]
191
+ }
192
+ }
193
+ } ,
166
194
'sources' : {
167
195
'lib.sol' : {
168
196
'content' : 'library L { function f() returns (uint) { return 7; } }'
You can’t perform that action at this time.
0 commit comments