File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,11 @@ describe('generic expressions', () => {
2020 util . report ( output . errors ) ;
2121 } ) ;
2222
23+ it ( 'should compile after instrumenting an assembly if statement' , ( ) => {
24+ const contract = util . getCode ( 'assembly/if.sol' ) ;
25+ const info = getInstrumentedVersion ( contract , filePath ) ;
26+ const output = JSON . parse ( solc . compile ( util . codeToCompilerInput ( info . contract ) ) ) ;
27+ util . report ( output . errors ) ;
28+ } ) ;
29+
2330} ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ contract Test {
1313 returns (bool _isWhitelisted )
1414 {
1515 bytes4 _signature = bytes4 (keccak256 ("whitelisted(address) " ));
16- address _whitelistContract = getContractAddress ( " Whitelist " );
16+ address _whitelistContract = address ( this );
1717
1818 assembly {
1919 let _pointer := mload (0x40 ) // Set _pointer to free memory pointer
You can’t perform that action at this time.
0 commit comments