Questions tagged [remix]

Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

How do I connect to Remix in Mist or MetaMask?

If I use either Mist or MetaMask, I get the error message: Unable to connect to http://localhost:8545. Invalid JSON RPC response: "" How can I connect to the Remix localhost?
2
votes
1answer
85 views

What do I deploy?

This is related to Are Monolithic Smart Contracts Better than Those That Are Decoupled?, where I basically have the following setup: contract A { int private x; function save(int _x)...
9
votes
3answers
7k views

Solidity error when encoding arguments to query public mapping

While developing a Smart Contract with Solidity on Remix , after creating the contract I'm trying to query a public mapping: mapping (address => uint256) public balanceOf; but when I call ...
4
votes
2answers
1k views

keccak256 Error Undeclared identifier in browser-solidity

I try to use sha3/keccak functions inside a Solidity contract, but I get a weird error: Untitled:5:13: Error: Undeclared identifier. bytes32 d=keccak256(0x616263); The contract : pragma ...
1
vote
1answer
3k views

storage and memory error

I am trying to execute the following example listed in the documentation using solidity 0.4 pragma solidity ^0.4.0; contract C { uint[] data1; uint[] data2; function appendOne() { ...
4
votes
1answer
742 views

How to add ether balances to accounts in Solidity online compiler Javascript VM?

Using the Solidity online compiler set to its own JavaScript VM, calling any function with ether in msg.value throws an exception. I don't see a way to add an ether balance to an address.
3
votes
1answer
148 views

Different return value Truffle & online compiler

Using the online solidity compiler startGame() returns false, but using truffle this function returns a long hex string: 0xf697bd4ff4f5574f3cf73cd46a18087a5a0cf1aa1580fd4992ab20f574a808fe function ...
3
votes
1answer
126 views

atom-ethereum-interface returning different outputs from browser-solidity

I'm working on a proof-of-concept "email server" dapp and am getting different behavior in atom-ethereum-interface vs. browser-solidity I'm running a private blockchain in a Docker container with my ...
2
votes
3answers
1k views

Can “bytes” take in value as a hex?

While trying to upload a public key on Ethereum, I have faced a problem. Given the following code in Solidity browser, it seems that I can only insert string values (using the browser compiler). For ...
5
votes
1answer
8k views

Solidity compiler is giving error ( Expected token Semicolon got 'RBrace' )

I am compiling a contract from browser-solidity,but I am getting Error: Expected token Semicolon got 'RBrace' . The part of contract that throws error is: contract owned { address public owner; ...
3
votes
1answer
184 views

Smart Contract different behaviour on testnet vs Solidity Browser

The following smart contract behaves differently on Solidity Browser and testnet: pragma solidity 0.4.2; contract mortal { address owner; function mortal() { owner = msg.sender; } ...
2
votes
0answers
61 views

Parity crashes after not closing cleanly

If Parity doesn't close properly, I get the following error and have to resynch the entire chain again... thread '' panicked at 'Error opening state db: Failed to create rocksdb directory: Error {...
9
votes
1answer
2k views

VM Exception: invalid JUMP when I call a second function

I'm experimenting with Solidity Browser Here is my contract code: contract Test { mapping (address => uint256) weismap; function bet(uint vote) payable returns (uint256 weis) { ...
3
votes
0answers
87 views

Solidty Browser doesn't load properly

Solidity Browser doesn't load anymore. Here is a screenshot with the Chrome Developer open. on Chrome Version 52.0.2743.116 m It's stuck on loading and I see in developer some error messages. It ...
2
votes
1answer
71 views

Call function is not valid in contract

contract NotifyContract { //address at 0x971A46e7C16D2bBEd2167460961D86Dc3715EE32 address public userAddr; byte public types; function notify(byte tokenByte,address userAddr_){ ...
7
votes
1answer
1k views

How to debug contract in browser-solidity

contract users{ struct User{ uint id; string str; } User [] public adds; function del(){ delete adds; } function delElem(uint i){ delete adds[i]; } function add(uint id,string cc){ ...
4
votes
1answer
621 views

JS Console for Browser Solidity?

Is there any way to connect a console to Browser-Solidity's JavaScript-VM? I'd like to send JS calls to contracts.
5
votes
1answer
2k views

How to get the bytecode of a transaction using the solidity-browser?

I want to get the bytecode to put in the "MyEtherWallet/Send-Ether" when I want to make some transaction, sending some ether to some contract, to call some function in the contract. I need to use the "...
5
votes
1answer
2k views

Solidity Browser Compiler — Error: Assertion failed

Here's the code: contract C { function a(uint x){} } I try to call C.a(1000000000000000000); and get an error: Error encoding arguments: Error: Assertion failed while C.a(100000000); is ...
4
votes
1answer
618 views

Using 2 libraries with a contract in a sol file

I have a sol file with a library and also a contract. The contract can use the library and everythings deploys correct using the solidity-browser. If I add a new library and call a function of that ...
11
votes
5answers
14k views

Invalid JSON RPC response: “” In Browser-Solidity

I'd like to connect private geth node from browser-solidity, however it returned the error Invalid JSON RPC response: "". Please check the following picture for details. Could you tell me how to ...
1
vote
1answer
713 views

How can I log an event with indexed fields in Remix?

As you can see below, the indexed field is ignored, and the last field is set to zero: contract MyContract { event MyWorkingEvent( address thing4, address thing5, address ...
3
votes
1answer
266 views

Using new operator and TypeError: Cannot read property 'event' of undefined

Here's the code: I compile these two contracts together and deploy Bar contract. After deploying it I have a contract account address where it has been deployed on the blockchain: ...
6
votes
1answer
3k views

What is the difference between Truffle and Remix?

Please list the differences between Truffle and Remix. Where is the use of both applicable? Can somebody list this using an example?
3
votes
0answers
156 views

In Browser-Solidity, I want to see the messages sent by a contract

There is good information on this site about writing and ad-hoc testing a contract in Browser-Solidity. When I use the transaction tab to create my contract and invoke its public functions, I want to ...
27
votes
3answers
6k views

What is the difference between transaction cost and execution cost in remix?

What is the difference between transaction cost and execution cost as seen after contract instantiation in remix? I don't think it matters, but here is my contract: contract DepositCounter { ...
4
votes
3answers
4k views

Installing solidity in Debian Linux

I'm trying to install solidity but apparently there are no online repositories with all dependencies. I have tried using the methods described here. sudo add-apt-repository ppa:ethereum/ethereum ...
2
votes
1answer
52 views

Deploying Network; Using Different PC for different user

I am using MIX IDE in Windows. I have created a new smart contract in Contract.sol, I have 4 Pages of html and there are 4 users. Each html page is controlled by each user. The pages are also ...
4
votes
3answers
1k views

Browser Solidity: What does the “Transaction” tab do?

In Browser Solidity, there's a "Transaction" tab (paper plane icon). You can choose one of two addresses, and a value. But there's no "send" button or anything of the sort. What is this section ...
5
votes
4answers
807 views

why the browser based solidity compiler crushes when the code is too long?

I find that the browser based solidity compiler will crush when the code's length reach certain value which is about 230 lines. I don't know why and I am certain that there is no syntax mistake, does ...
37
votes
6answers
33k views

How do you get a json file (ABI) from a known contract address?

I want to watch a Solidity contract using the Mist browser. I know how to do that and it needs the address and the json. I have the address, but I don't have the json. I do have the source code. Can ...
5
votes
1answer
4k views

How to deploy contract into local running node using solidity browser?

I am running a local ethereum node and I did unlock an account. Now I want to use the solidity browser to deploy that contract, but when I switch to the web3 provider deploy option and I press the ...
4
votes
2answers
561 views

How to easily share Solidity code so that others can test it?

Say you have some Solidity code and something doesn't work and you'd like for somebody to take a look at it and do some quick tests. What is an efficient way to share Solidity code with others?
3
votes
1answer
113 views

Can browser-solidity access contracts values with the in memory tester?

I was reading an interesting answer and wanted to make a quick test in browser-solidity. My contract code is below and I'd just like to get the string I passed in the constructor. contract ...
37
votes
8answers
19k views

How to quickly test a Solidity function?

There are snippets and functions of Solidity code provided on this Ethereum Stack Exchange and other sites. What are ways to quickly test them, possibly debug a little, and play around?
-1
votes
1answer
134 views

Interface order of functions [closed]

I am creating a contract with the function 1() function 2() function 3() in a reasonable order. This order is in the "interface" created by the ethereum wallet or solidity browser (for me) ...
4
votes
2answers
49 views

What's the Purpose of the Vertical Rule Dividing the Work-Space in Browser-Solidity?

And can it be eliminated? I find it distracting.
2
votes
1answer
505 views

Subcurrency Example: Why always be the “minter” using browser compiler?

A note in the docs referring to the contract example SubCurrency states: This is not a nice example for browser-solidity. If you use browser-solidity to try this example, you cannot change the ...
4
votes
2answers
949 views

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

I'm reading up IDE and I don't understand them from a lay person's perspective. What's the difference between mix and browser based IDE. How do you use them?