Skip to main content
5 votes
Accepted

Best way to debug Large / Optimized contracts in Mix

At risk of being downvoted, I'll say "don't debug using a debugger". Use solidity events, and log profusely in your contracts. Logging is dirt cheap when it comes to gas, and it's easy to capture ...
Paul S's user avatar
  • 4,281
5 votes

Running contract CrowdFunder in Mix and function modifier causes - Solidity exception (bad jump)

"bad jump" is just the way "throw" is modeled, so it is expected behaviour.
chriseth's user avatar
  • 3,412
4 votes
Accepted

Parse uint256 parameters to a function call from web3.js

input1 = web3.toBigNumber('0xfc9e0eefe9f3a5101b7c025b217c03c95dbf9bb4f2d1d46db238e305af104103'); input2 = web3.toBigNumber('0xabcbcbcbcbbc'); contracts['Sample'].contract.doSomething.call(input1, ...
Roland Kofler's user avatar
4 votes
Accepted

How to import solidity libraries in mix?

So it turns out there is an issue in the current release...they have been notified. The work around is to use the full path. I also didn't realize that the full path is case sensitive.
Walt D's user avatar
  • 391
4 votes
Accepted

Mix: In the sample project, where is the "contracts" JS global defined?

Mix automatically generates the contracts array for you. You can manually create contract objects with code like the following: var MyContract = web3.eth.contract(abiArray); // instantiate by ...
Raine Revere's user avatar
  • 3,610
4 votes

Mix: In the sample project, where is the "contracts" JS global defined?

"contracts" is inserted by Mix, you cannot change it. is there a specific reason why you need to access to the declaration?
Yann's user avatar
  • 159
3 votes
Accepted

How to run test sample contract in the standard web browser?

This is the point. Today you can't use Dapps with standard browsers but only with Ethereum enabled browsers. The only widely used one for now is Mist. But there are works in progress to create ...
Nicolas Massart's user avatar
3 votes
Accepted

Running contract CrowdFunder in Mix and function modifier causes - Solidity exception (bad jump)

The modifier inState(State _state) is basically an assertion insuring that before the actual function runs (represented by the _ in the modifier's code), the current state of the contract is in the ...
Thomas Jay Rush's user avatar
3 votes
Accepted

Workflow for Dapp Development

Mix IDE is officially supported by Ethereum, and can be used with geth. But you could use either of them based on your preference. You could also take a look at some other Javascript IDEs, specially ...
rupshabagchi's user avatar
3 votes
Accepted

Trouble Installing/Opening Mix IDE on OS X

HOW TO INSTALL ETHEREUM UTILITIES ON MAC OSX Install Brew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Run brew doctor Install the caktux formulae for ...
arodriguezdonaire's user avatar
3 votes

What is an IDE? What's the difference between mix, and browser based IDE?

Mix is no more used to code, See https://blog.ethereum.org/2016/07/08/c-dev-update-summer-edition/. you could check some alternatives listed at http://solidity.readthedocs.org you could also try ...
Badr Bellaj's user avatar
  • 18.8k
2 votes

Why does my copy of Mix on OSX have an ancient version of Solidity?

The easiest solution is to build from source. This way you will have fully up to date ethereum. And it's not so hard really. Here's the commands. First get yo brew on brew update brew upgrade brew ...
VoR0220's user avatar
  • 1,710
2 votes

Why does my copy of Mix on OSX have an ancient version of Solidity?

The DMG I found here installed Mix v1.0.1 as well. On the Mix releases page, we see that version 1.0.1 was released on February 17, 2016. On the Solidity releases page we see that Solidity v0.2.2 ...
tayvano's user avatar
  • 16k
2 votes

How to create a new account with ethereumjs in Mix IDE

I don't think smart contracts can do that. EVM on which smart contracts can run has the following limitation The Ethereum Virtual Machine or EVM is the runtime environment for smart contracts in ...
Abhiram mishra's user avatar
2 votes

Can't connect to dynamically created contract in Mix

The error was that I was passing a stringified ABI to web3.eth.contract(ABI) and not an array object.
o0ragman0o's user avatar
  • 4,330
2 votes

MIX IDE on MacOS El Capitan. How To Install, step by step please?

Mix is included in cpp, you'll have to download the file over here and you'll be done, just select mix and drag and drop it in your applications :) http://www.ethdocs.org/en/latest/ethereum-clients/...
yoregis's user avatar
  • 1,242
2 votes
Accepted

Factory contract failing to create - Mix

You need to specify an address that you are sending the transaction from contracts['Factory'].contract.Create(10,{from: web3.eth.accounts[0],gas:100000}); You can change the gas as needed, but 100,...
Tjaden Hess's user avatar
  • 37.2k
2 votes

Trouble Installing/Opening Mix IDE on OS X

Worth mentioning as well that for those living on the cutting edge and using the develop ppa of cpp-ethereum: Mix will no longer be installable by apt-get install mix - to avoid a naming conflict with ...
George's user avatar
  • 414
1 vote

What is exactly the MIX algorithm

Here's a basic Python implementation of what I think you're looking for, from the Ethash wiki. You'll need to grab the various constants from elsewhere on the page. def calc_dataset(full_size, cache):...
Richard Horrocks's user avatar
1 vote
Accepted

How do I connect to Remix in Mist or MetaMask?

You're waiting for the Remix team to add support. Currently they only support local nodes running, but marked the issue as "soon" on October 4th: https://github.com/ethereum/remix/issues/105
DanF's user avatar
  • 2,626
1 vote
Accepted

Does anyone use Mix anymore?

Mix is no more maintained as you mentioned, there is many other alternative to help you writing and compiling your contracts, the interesting alternative for beginners is Solidity Browser. other ...
Badr Bellaj's user avatar
  • 18.8k
1 vote

Error installing mix in LinuxMint Rosa 17.03

Mix is no longer supported. It was discontinued several months back and the TurboEthereum guide you refer to is probably a year out of date. Some alternatives are suggested at http://solidity....
Bob Summerwill's user avatar
1 vote

In the Mix IDE how do I view tokens belonging to a user

Tokens are not really stored in an "account". A token is just a contract that meets the API requirements set out by EIP 20. Since the user's balance is stored in the contract and not in the user's ...
Tjaden Hess's user avatar
  • 37.2k
1 vote

Mix does not show the current contract state

Mappings work by hashing the key to get the storage address and so the keys themselves aren't stored. Unless keys can be provided, such as in a seperate lookup table, there is no simple way to view ...
o0ragman0o's user avatar
  • 4,330
1 vote

Mix-ide crashes on OS X El Capitan

We are working through this issue with Ralf on https://gitter.im/ethereum/mix right now. Come and join us!
Bob Summerwill's user avatar
1 vote

Mix: How do I reference user accounts in JS

You have web3.js available in Mix-IDE, so in the JS console you can use functions like web3.eth.accounts as usual. The only other JS object that Mix exposes is contracts, as you can see in at ...
Giuseppe Bertone's user avatar
1 vote

Seeing a contract created contract in Mix

The easiest way to accomplish this is to create a way for the creating contract to report what it's doing. I'll refer to the contracts as "factory" and "generated", where there is one "factory" with a ...
Rob Hitchens's user avatar
  • 55.4k
1 vote

Can't connect to dynamically created contract in Mix

if you're using Mix the access to the contract is just done using contracts["contractName"] . if you follow the tutorial here, they write a contract called Rating. the way to access it in the ...
euri10's user avatar
  • 4,640
1 vote

web3.js and require.js - unexpected identifiyer issue

The error comes from the given path to web3.js. you are using src="../Desktop/Blockchain..... to resolve that put the script web3.js in the same folder that your page HTML 'page1.html" .
Badr Bellaj's user avatar
  • 18.8k
1 vote

How do I access a contract by its address (within Mix)

To get a contract instance by its address you can do: IN SOLIDITY ContractClass contractInstance = ContractClass(contractAddress); IN JS WITH WEB3 var Web3 = require('web3'); var web3 = new Web3();...
arodriguezdonaire's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible