-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eth_compilesolidity works on localhost with testrpc, but not on mainnet #1490
Comments
test contact you can use to compile / deploy: |
Here's the error I see in the network background panel: Not sure what -32000 means, maybe it's a hint? |
The error I'm seeing is throwing from background.js:3974, this chunk of code:
|
I am interested in what version of Metamask and Chrome you are using. |
Chrome version Version 51.0.2704.106 (64-bit), metamask 3.7.1. This hasn't changed on my end since my initial dev / testing of the EthDeployer a couple weeks ago when it was working, though. |
I wonder if I could roll back metamask easily to try an older version? |
Interesting, when I try the compile/deploy on Rinky Testnet, I get this message: compile err: Error: The method eth_compileSolidity does not exist/is not available I see no hits on my webserver access_logs, in either case. |
Anyone? People were really excited to use this tool to deploy contracts without needing a connection to a full node, and it's already been featured in some ethereum meetups, plus it was sort of the capping-stone to this BlockGeeks article. Helping me get this working again could bring a lot of usage and publicity to metamask... |
I added some debug lines to the function onPayLoadHandled:
got this result:
The response is null, "undefined", there's no solc error getting kicked back up, it's just somehow not connecting / running solc anymore. |
A little more debugging the request / responses. Heres: the request response against local testRPC, which succeeds:
Now when I switch to mainnet, I get this instead:
I wonder if there is some way I can manually test that jsonrpc against a host... |
web3.eth.getCompilers is failing, returning null against mainnet. I'm guessing that could be a big part of the issue... |
Closing as a duplicate of #1493. We never have supported compiler methods, and neither does Infura, our provider. Those methods are being deprecated from the providers, so should not be relied on, you should bring your own compiler in your software, since nobody else knows which compiler to provide. |
Apparently our providers lost this functionality when it was removed from the major clients: |
Also: ethereum/EIPs#209 |
This is in reference to: #1485
I built the EthDeployer, here, for a BlockGeeks solidity tutorial article:
https://github.com/Tectract/EthDeployer
The idea is that this tool should allow you to compile and deploy contracts to the mainnet without needing a full node connection, yourself. That is the main utility of the EthDeployer. It WAS working just fine, a couple weeks ago...
Now, it no longer is able to complete the function call
web3.eth.compile.solidity(formattedContract,function(err, resp){
Note: I do not see the solc compiler getting called on the system. I've added hard-logging to the solc executable and it's not being executed.
When you run the ethDeployer against a localhost:8545 node, or simply disable metamask, everything works ok. It's only failing when connected to the mainnet.
This was extensively tested and working on my web-server a couple weeks back. Did something change?
You can test the EthDeployer locally very easily, it's a simple react app so you just git clone, npm i, npm start it.
It's also available online for testing at www.enledger.io/ethdeployer
The text was updated successfully, but these errors were encountered: