solc-js icon indicating copy to clipboard operation
solc-js copied to clipboard

Downloading binaries from `emscripten-asmjs/` and `emscripten-wasm/` dirs in solc-bin

Open cameel opened this issue 1 year ago • 0 comments

We introduced the new directory structure in solc-bin quite a while ago and we're recommending it in Static Binaries. solc-js, however, still uses the legacy bin/ directory. We should switch to the new structure.

  • Make downloadCurrentVersion.ts use the new dirs.
    • It should try emscripten-wasm/ first and only fall back to emscripten-asmjs/ when the binary is not there.
    • Nightlies are still only available in bin/. We need to resolve https://github.com/ethereum/solidity/issues/13015 first.
  • Find any other places where we're using the old dirs and fix them too.
  • Fix all references to the old dirs in the README.

For reference, Truffle has recently switched to the new structure too: https://github.com/trufflesuite/truffle/pull/5008.

cameel avatar Oct 06 '22 21:10 cameel