ericxtang / browser-solc Goto Github PK
View Code? Open in Web Editor NEWSolc in the browser.
Home Page: https://ericxtang.github.io/browser-solc/
Solc in the browser.
Home Page: https://ericxtang.github.io/browser-solc/
Solc Version Loaded: soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js
ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:1
Uncaught RangeError: Maximum call stack size exceeded
at Object.Ueb [as dynCall_viiiiii] (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:12)
at invoke_viiiiii (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:1)
at Array.Yva (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:13)
at Object.Fab [as dynCall_vi] (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:12)
at invoke_vi (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:1)
at Array.eua (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:10)
at Object.wgb [as dynCall_iii] (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:12)
at invoke_iii (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:1)
at Array.cua (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:10)
at Object.Rgb [as dynCall_iiiiii] (ethereum.github.io/solc-bin/bin/soljson-v0.4.25-nightly.2018.8.7+commit.cda3fbda.js:12)
I am trying to compile code using a web app.
I have this -
var mycontractcode="pragma solidity ^0.4.3; contract greeter {uint d1;}"
document.getElementById("compile-output").value = "";
var result = compiler.compile(mycontractcode, optimize);
And
BrowserSolc.loadVersion(getVersion(), function(c) {
compiler = c;
console.log("Solc Version Loaded: " + getVersion());
status("Solc loaded. Compiling...");
solcCompile(compiler);
});
With
<script src="./browser-solc/browser-solc.min.js" type="text/javascript"></script>
I am using node to run the page at port 3000. The error did not always arrive until I added MongoDB and now it always happens. Before it happened sometimes, when I cleared the cache it was OK.
But I cannot solve this. I saw a few entries online but I have tried those solutions and they did not work.
Hey! I'd like to asynchronously load browser-solc
on a webpage. Right now for non-IE browsers, the main handler is listening for DOMContentLoaded
before it attaches BrowserSolc
to window
(here). However, if this script tag is asynchronously loaded and arrives after DOMContentLoaded
it will never execute.
I'll propose a PR for this change.
Hi there! Been using this for an in-browser Solidity browser and but can't seem to migrate to Solidity 0.5.x. It seems to be related to this issue of import
and export
JSON for 0.5.x:
Love being able to use browser-solc
as it avoids import
and would love to continue! Let me know what more details I can provide.
Unable to compile simple contract on browser-solc with soljson version 0.4.20+
Testing on URL:
https://s3.amazonaws.com/browser-solc.dappbench.com/index.html
With code:
pragma solidity ^0.4.19;
contract Sample {
function Sample() { }
}
Does not work:
soljson-v0.4.20+commit.3155dd80.js
soljson-v0.4.20-nightly.2018.2.13+commit.27ef9794.js
soljson-v0.4.20-nightly.2018.2.12+commit.954903b5.js
Works:
soljson-v0.4.19+commit.c4cbbb05.js
soljson-v0.4.20-nightly.2017.11.30+commit.cb16a5d3.js
soljson-v0.4.20-nightly.2018.1.4+commit.a0771691.js
soljson-v0.4.20-nightly.2018.1.22+commit.e5def2da.js
soljson-v0.4.20-nightly.2018.1.26+commit.bbad48bb.js
soljson-v0.4.20-nightly.2018.1.29+commit.a668b9de.js
First nightly version that breaks:
soljson-v0.4.20-nightly.2018.2.12+commit.954903b5.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.