File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -515,3 +515,11 @@ tape('Loading Legacy Versions', function (t) {
515
515
} ) ;
516
516
} ) ;
517
517
} ) ;
518
+
519
+ tape ( 'API backwards compatibility' , function ( t ) {
520
+ t . test ( 'compileStandard and compileStandardWrapper exists' , function ( st ) {
521
+ st . equal ( solc . compile , solc . compileStandard ) ;
522
+ st . equal ( solc . compile , solc . compileStandardWrapper ) ;
523
+ st . end ( ) ;
524
+ } ) ;
525
+ } ) ;
Original file line number Diff line number Diff line change @@ -224,6 +224,10 @@ function setupMethods (soljson) {
224
224
nativeStandardJSON : compileStandard !== null
225
225
} ,
226
226
compile : compileStandardWrapper ,
227
+ // Temporary wrappers to minimise breaking with other projects.
228
+ // NOTE: to be removed in 0.5.1
229
+ compileStandard : compileStandardWrapper ,
230
+ compileStandardWrapper : compileStandardWrapper ,
227
231
// Loads the compiler of the given version from the github repository
228
232
// instead of from the local filesystem.
229
233
loadRemoteVersion : function ( versionString , cb ) {
You can’t perform that action at this time.
0 commit comments