File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const tape = require('tape');
2
2
const semver = require ( 'semver' ) ;
3
3
const solc = require ( '../index.js' ) ;
4
4
const linker = require ( '../linker.js' ) ;
5
+ const execSync = require ( 'child_process' ) . execSync ;
5
6
6
7
function runTests ( solc , versionText ) {
7
8
console . log ( `Running tests with ${ versionText } ${ solc . version ( ) } ` ) ;
@@ -597,9 +598,7 @@ const versions = [
597
598
] ;
598
599
for ( var version in versions ) {
599
600
version = versions [ version ] ;
600
- solc . loadRemoteVersion ( version , function ( err , solc ) {
601
- if ( ! err ) {
602
- runTests ( solc , version ) ;
603
- }
604
- } ) ;
601
+ execSync ( `curl -o /tmp/${ version } .js https://ethereum.github.io/solc-bin/bin/soljson-${ version } .js` ) ;
602
+ const newSolc = require ( '../wrapper.js' ) ( require ( `/tmp/${ version } .js` ) ) ;
603
+ runTests ( newSolc , version ) ;
605
604
}
You can’t perform that action at this time.
0 commit comments