Skip to content

Commit 9107b70

Browse files
authored
Merge pull request #289 from ethereum/wrapper-nosource
Raise error if trying to compile no sources with compileStandardWrapper
2 parents 5e938f2 + a122914 commit 9107b70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wrapper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ function setupMethods (soljson) {
127127
return formatFatalError('Only Solidity sources are supported');
128128
}
129129

130-
if (input['sources'] == null) {
130+
// NOTE: this is deliberately `== null`
131+
if (input['sources'] == null || input['sources'].length === 0) {
131132
return formatFatalError('No input specified');
132133
}
133134

0 commit comments

Comments
 (0)