We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfcdd0 commit b2130fcCopy full SHA for b2130fc
wrapper.js
@@ -187,14 +187,16 @@ function setupMethods (soljson) {
187
return translate.versionToSemver(version());
188
};
189
190
- var license = function () {
191
- // return undefined
192
- };
193
-
+ var license;
194
if ('_solidity_license' in soljson) {
195
license = soljson.cwrap('solidity_license', 'string', []);
196
} else if ('_license' in soljson) {
197
license = soljson.cwrap('license', 'string', []);
+ } else {
+ // pre 0.4.14
+ license = function () {
198
+ // return undefined
199
+ };
200
}
201
202
return {
0 commit comments