solc-js
solc-js copied to clipboard
Downloading binaries from `emscripten-asmjs/` and `emscripten-wasm/` dirs in solc-bin
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 toemscripten-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.
- It should try
- 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.