Skip to content

Commit 42fe99b

Browse files
committed
Add back compileStandard and compileStandardWrapper temporarily
1 parent d596325 commit 42fe99b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/package.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,3 +515,11 @@ tape('Loading Legacy Versions', function (t) {
515515
});
516516
});
517517
});
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+
});

wrapper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ function setupMethods (soljson) {
224224
nativeStandardJSON: compileStandard !== null
225225
},
226226
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,
227231
// Loads the compiler of the given version from the github repository
228232
// instead of from the local filesystem.
229233
loadRemoteVersion: function (versionString, cb) {

0 commit comments

Comments
 (0)