Skip to main content
Share Your Experience: Take the 2024 Developer Survey
8 votes
Accepted

Is Coin a reserved word?

The Coin contract is included in the Solidity standard library – a feature from Proof of Concepts times. The standard library includes following contracts: Config, Coin, CoinReg, coin, service, owned,...
Paweł Bylica's user avatar
8 votes

constant versus public in solidity functions

simply put, the "constant" indicates that no transaction is needed and no gas/eth will be used. It is the same as getting the value of a contract's property. Public indicates visibility to outside ...
Walt D's user avatar
  • 391
8 votes
Accepted

constant versus public in solidity functions

I'm not sure which part of the system assumes this (web3.js?), but if you don't declare a a function as constant it's assumed it's going to change contract state and thus sets up a transaction. The ...
Paul S's user avatar
  • 4,271
7 votes
Accepted

Deploying new contract in transaction MIX IDE

in your scenario you have to create a transaction with your contract, you still have a transaction with the default contract which is called Sample
euri10's user avatar
  • 4,640
6 votes
Accepted

Is there an advantage in running a local private node?

The real benefit of Mix is that you can: debugging assembly code / source code (breakpoint, local variable, state variable, ...) use the integrated web browser to develop/test the front end (or use ...
Yann's user avatar
  • 159
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,271
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
5 votes
Accepted

Missing File from Mix IDE Install Package for Windows

I am afraid that you have hit an issue which know about but haven't had time to fix yet. We need to run the "Visual C++ Redistributable Packages for Visual Studio 2013" (https://www.microsoft.com/en-...
Bob Summerwill'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

How to import solidity libraries in mix?

You can't import Truffle libraries to any contract in Mix. The thing is that Truffle use your imports to build an only .sol file, so the compiler doesn't import anything. If you want to debug your ...
arodriguezdonaire's user avatar
4 votes

AlethZero and Mix problems

Sorry to hear that you're having problems. I'm not sure who put that tutorial together, but perhaps you could contract them about the disparities? Check out the official docs at http://ethdocs.org....
Bob Summerwill's user avatar
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
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
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
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

how to build the mix IDE

You're missing some dependencies, at least the qt libraries, see below. Mix can't be build on its own, you need more building blocks before. This image depicts quite well the Mix dependencies : Like ...
euri10's user avatar
  • 4,640
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
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
2 votes

Mix IDE Tutorial error: index.html - line 15 - Uncaught TypeError: Cannot read property 'contract' of undefined

From the code, it seems that it is bound to crash at that line if there is no contract of that name in existence. I ran that same sample Dapp and I get EXACTLY that same error when the contract has ...
Slender's user avatar
  • 141
2 votes
Accepted

Mix IDE Tutorial error: index.html - line 15 - Uncaught TypeError: Cannot read property 'contract' of undefined

I'm pretty sure that in the scenario part on the right of the IDE, you haven’t created the contract Rating. So you need to click on the Add Transaction button and create it. After that problem solved ;...
euri10's user avatar
  • 4,640
2 votes

Why can't I open Mix?

I downloaded the binary from here and it works on my system (OSX El Capitan). Mix is under hard development as I understand so a thing might be working today, but broken tomorrow. Just have a bit of ...
samurai jack's user avatar
  • 1,125
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
2 votes
Accepted

How to edit starting parameters of the genesis block in mix?

This feature involves AlethZero. There's an option in AZ to export the state which can be imported in Mix using this feature.
Yann's user avatar
  • 159
2 votes
Accepted

how to build the mix IDE

Currently the build process does not allow to build subsets of the webthree umbrella. To compile mix you will have to compile the whole set: git clone https://github.com/ethereum/webthree-umbrella/ ...
q9f's user avatar
  • 32.9k
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
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.1k
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

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