Merge branch 'master' into ui-2

# Conflicts:
#	js/src/views/ContractDevelop/store.js
This commit is contained in:
Jaco Greeff
2017-05-05 10:08:10 +02:00
15 changed files with 172 additions and 72 deletions

View File

@@ -52,21 +52,9 @@ export default class SolidityUtils {
static getCompiler (build) {
const { longVersion, path } = build;
const URL = `https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/${path}`;
const URL = `https://cdn.rawgit.com/ethereum/solc-bin/gh-pages/bin/${path}`;
const isWorker = typeof window !== 'object';
if (isWorker) {
return new Promise((resolve, reject) => {
self.importScripts(URL);
setTimeout(() => {
const compiler = solc(self.Module);
return resolve(compiler);
}, 50);
});
}
return fetch(URL)
.then((r) => r.text())
.then((code) => {