File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -585,15 +585,25 @@ tape('Loading Legacy Versions', function (t) {
585
585
st . end ( ) ;
586
586
return ;
587
587
}
588
- if ( ! solcSnapshot . supportsSingle ) {
589
- st . plan ( 1 ) ;
590
- st . skip ( 'Not supported by solc' ) ;
591
- st . end ( ) ;
592
- return ;
593
- }
594
- var output = solcSnapshot . compile ( 'contract x { function g() public {} }' ) ;
595
- st . ok ( ':x' in output . contracts ) ;
596
- st . ok ( output . contracts [ ':x' ] . bytecode . length > 0 ) ;
588
+ var input = {
589
+ 'language' : 'Solidity' ,
590
+ 'settings' : {
591
+ 'outputSelection' : {
592
+ '*' : {
593
+ '*' : [ 'evm.bytecode' ]
594
+ }
595
+ }
596
+ } ,
597
+ 'sources' : {
598
+ 'cont.sol' : {
599
+ 'content' : 'contract x { function g() public {} }'
600
+ }
601
+ }
602
+ } ;
603
+ var output = JSON . parse ( solcSnapshot . compileStandardWrapper ( JSON . stringify ( input ) ) ) ;
604
+ var x = getBytecodeStandard ( output , 'cont.sol' , 'x' ) ;
605
+ st . ok ( x ) ;
606
+ st . ok ( x . length > 0 ) ;
597
607
} ) ;
598
608
} ) ;
599
609
} ) ;
You can’t perform that action at this time.
0 commit comments