• Scott Tsai's avatar
    remix-solidity: add compiler.setEvmVersion() · f7b4230e
    Scott Tsai authored
    Add a way to pass the `evmVersion` parameter
    to `solc` by:
    
    1. Simplify the `Compiler.compileJSON()` interface from
    `compileJSON(source, optimize)` to `compileJSON(source)`
    
    Whether optimization is enabled is then always determined by
    the `Compiler.optimize` object field which simplifies data flow.
    
    2. Add a `Compiler.evmVersion` field and a setter and
    make `compileJSON()` honor that.
    
    Specifying `evmVersion` is useful when targetting an older
    private chain with the latest `solc` or when using
    an EVM-compatible chain that's slightly behind Ethereum
    main-net in terms of features.
    
    The unused `userAgent` variable in `onInternalCompilerLoaded` was
    only removed to fix `npm run test` for `remix-solidity`'.
    f7b4230e
Name
Last commit
Last update
.circleci Loading commit data...
docs Loading commit data...
docs_old Loading commit data...
remix-analyzer Loading commit data...
remix-astwalker Loading commit data...
remix-debug Loading commit data...
remix-debugger Loading commit data...
remix-lib Loading commit data...
remix-simulator Loading commit data...
remix-solidity Loading commit data...
remix-tests Loading commit data...
remix-url-resolver Loading commit data...
remixd @ 1a9ec323
.gitignore Loading commit data...
.gitmodules Loading commit data...
.npmignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
lerna.json Loading commit data...
package.json Loading commit data...
release-process.md Loading commit data...