Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [remix]

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

407 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
133 views

Transaction hash using web3.py received but variable state not changed

Trying to send a value to function and set it to a variable. Making transaction using txn = contractInstact.transact({ 'from': Web3.toChecksumAddress("...
1
vote
1answer
130 views

Simple Open Auction example - how to run it?

I'm trying to run Simple Open Auction, compiled successfully in Remix. I receive "Exception while processing transaction: revert" when I try to enter recipient account addresses from Ganache, or "...
1
vote
1answer
232 views

Unable to test Solidity Remix

I am writing my own smart contract in Solidity and trying to test in Remix. The main Remix site appears to be down (https://remix.ethereum.org/). I found another site: https://ethereum.github.io/...
1
vote
0answers
33 views

Why does gas rise when the require will fail?

Here is the contract, function being called is voteForCharacter: pragma solidity ^0.4.19; contract CharacterEveryDay { event CharacterSelected(uint8 _character, uint64[256] characterVotes, uint64 ...
1
vote
0answers
42 views

I cannot verify contract on etherscan

I cannot deploy my contract so I test with simplestorage but I cannot verify it either. pragma solidity ^0.4.24; contract SimpleStorage { uint storedData; function set(uint x) public { ...
1
vote
0answers
15 views

What happens to the missing coins in this transaction? Copy paste this code into remix to reproduce my original bug. Thank you

pragma solidity ^0.4.24; contract TheCaseOfTHeMissingCoins{ string public name; string public symbol; uint8 public decimals = 18; address public owner; mapping (address => ...
1
vote
0answers
86 views

Gas requirement of function client.<function_name>() high: infinite

I've tried fix that problem. but still i don't know what was wrong If someone can fix this problem, please save me. I'm still trying this. below sample code contract HelloWorld { uint private ...
1
vote
0answers
30 views

Can't deploy contract in Mist

I'm trying to deploy contract using Mist on Mac OS X. It worked fine on testnet but when I try to do it on main net the transaction just hangs on "Couldn't estimate gas, restoring to default ...
1
vote
2answers
669 views

Remix always throws the error: exceeds block gas limit

Dear Ethereum developers. I started to learn Solidity this week and am trying to deploy a contract via Remix, but this doesn't really work. Running environment is set as Web3 Provider. (Because the ...
1
vote
2answers
215 views

Error: gas required exceeds allowance or always failing transaction at chrome-extension

I'm using Remix, Metamask, ROPSTEN and can not deploy any contract...always getting the same message...it used to work...not working any more...happens in different machines, happens with Chrome or ...
1
vote
0answers
114 views

Cannot connect to the Web3 provider when rpccorsdomain is on

I am getting the message: Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). When I specify: --rpccorsdomain "http://...
1
vote
0answers
155 views

Remix - Contract A doesn't work anymore when I deploy contract B

I recently had to deploy my second contract on the local Ganache Blockchain (Windows) using http://remix.ethereum.org/. But every single time I deploy contract B after I deployed contract A, contract ...
1
vote
0answers
195 views

How to verify a contract with libraries deployed from Remix

I successfully deployed a contract with remix here on Ropsten Testnet: https://ropsten.etherscan.io/address/0x10273a926517b417015748da21e1287bab2da8f7 The Source Code is very simple but I'm using my ...
1
vote
0answers
238 views

Can't deploy any contracts in Main Net using Remix

I've been having trouble for a day now deploying a token in Main Net using Remix. Both Kovan and Rinkeby worked well and instantly but Main net would fail without any error messages. Now I tried ...
1
vote
0answers
82 views

The Smart Contract works correctly on the remix but not on the truffle

I have a problem with my smart contract. When calling the method, transfer from the metacoin contract to send tokens to another contract. When I try to read from the getAddress function, all zeros ...
1
vote
0answers
222 views

How to set gas price in Remix IDE?

I'm testing my contract on Ropsten network. For this i've launched geth in docker: > command: --verbosity 4 -rpc --ipcdisable --rpcaddr "0.0.0.0" --rpccorsdomain "*" --syncmode "fast" --rpcapi="...
1
vote
2answers
162 views

function approveAndCall error

I creat token contract using remix. The function approveAndCall code is following. function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { ...
1
vote
0answers
348 views

Transaction call error, working on remix but fails with truffle

This is the struct for deals I created // custom types struct Deal { uint id; string name; string description; uint256 price; address seller; address buyer; string[] ...
1
vote
0answers
16 views

Function call executes modifier function midway through the method instead of at the beginning of the call

using SafeMath for uint256; using SafeMath32 for uint32; using SafeMath16 for uint16; struct BetterForA { address whosBetting; uint betAmount; // betAmount is in Wei string whichTeam; ...
1
vote
0answers
89 views

Remix testing timeout with JavaScript VM when calling a large array

I'm trying to test a contract getter method that returns a large array. I am using Remix and deploying using JavaScript VM. My contract deploys alright, but trying to call the getArray() method causes ...
1
vote
2answers
176 views

What is from address and Topic address in Remix log

I am invoking the buyTicket function of contract from account "0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C" in remix IDE with 20 ethers which is clear from log but confused what is "from" and "topic" ...
1
vote
0answers
204 views

Error on running any contract in online remix browser using Injected Web3 with Meta Mask

On running contract, I am getting error as shown below: creation of VFCToken pending... creation of VFCToken errored: Error: Error: [ethjs-rpc] rpc error with payload {"id":7746970824019,"jsonrpc":"2....
1
vote
0answers
137 views

Why Remix JavaScript VM and Web3 Provider show different behavior at the time CALL is made?

I'm using Geth evm version 1.8.4-stable to run private network and I see different behavior on CALL between the Remix environment of Javascript VM and Web3 Provider. On this example, using callHi() ...
1
vote
3answers
209 views

How do i add to a nested array within a struct

I am unable to add elements to a array within the struct struct D { string name; address key; } struct Aone { string aid; B[] blist; D[] dlist; } ...
1
vote
1answer
97 views

Balance Of and the amount raised does not increase sender an account

Can someone give me a hint or correct what is wrong with the code. Maybe it is obvious where the error is but I do not see it and I'm stuck. What to do next ?. The code is here: https://ropsten....
1
vote
1answer
550 views

ParserError: Expected identifier, got 'LParen' function (transfer)(address _to, uint256 _value, bytes _

Any help determining where I'm failing here would be helpful. I believe it has everything to do with my syntax, but am fairly new to DAPP development, but I believe the problem is in this line below. ...
1
vote
0answers
107 views

Can't call another contract constant function in Remix in Web3 provider mode, but it works in Javascript VM

Remix behaves differently when running Javascript VM and web3 provider mode. I have two contracts: contract ERC20Basic { function totalSupply() public view returns (uint256){} function ...
1
vote
1answer
154 views

How to let a function know that a specific input parameter is of ether value?

I am currently trying to build a prototype for a simple Ethereum based Ebay - I know there are already solutions for it, it is just for learning purposes. Currently I am lacking the understanding on ...
1
vote
1answer
149 views

How to call solidity function in html 'inspect' console properly?

I can see my contract in my console. The solidity code and abi is in the the index.html. I can't figure out how to call this function and send 0.01 ether with it as well. I would think it is something ...
1
vote
0answers
84 views

runtime definition of memory array size

I have a view function which takes a string as input and split the string into substring and i want to define a string array inside the function depending on the number of substrings that the function ...
1
vote
0answers
136 views

struct with mapping member in solidity

I have the below struct in a contract: struct ServiceListStruct { string cloudID; address gatewayID; string serviceProducerID; mapping (string => string) serviceProducerMetadata; string ...
1
vote
0answers
94 views

browser/Lottery.sol:26:1: ParserError: Expected token LBrace got 'RBrace' } ^

pragma solidity ^0.4.18; contract Lottery { mapping (address=> uint256) public winnings; address[] public tickets; string public name = "Lottery"; string public symbol = "LOT"; ...
1
vote
0answers
149 views

Can't transfer balance from contract to parent contract

I'm having trouble transferring remaining funds from a Contract to it's controlling Contract Factory. I'm trying to do the following. Create a new Service with Factory->createService() Add funds to ...
1
vote
0answers
213 views

Simple Bool Assignment runs out of Gas- can't figure out why?

I'm testing using Remix against web3 provider (Ganache). Here is my code: when "Startup = false" is uncommented, it runs out of gas. It works fine on Javascript VM in Remix, but not on Ganache ...
1
vote
1answer
506 views

Where is the compiler in Remix?

I installed remix-ide. It is able to compile contracts. So it somehow calls Solidity compiler. Where is this compiler located in the filesystem and how to use it without remix-ide?
1
vote
0answers
19 views

Trying to return an address - gets cut off when returned

I have these 3 functions in a contract I am writting. I am currently using https://remix.ethereum.org to help me debug/better understand what the code is doing. When I call GetPassedAddr(address ...
1
vote
0answers
90 views

Should I not use this string-byte type casting assembly code?

My string to bytes32, bytes32 to string code is below. function _stringToBytes32(string _string) internal pure returns (bytes32 _bytes32) { require(bytes(_string).length < 33)...
1
vote
0answers
58 views

Lower level implementation of solidity call

How is call() implemented at lower level in Ethereum Solidity compiler? Most of the places it is written that it is used to send message to contracts. But I need to know syntax and semantics of call() ...
1
vote
1answer
480 views

How can I highlight the syntax of Solidity in Ace browser editor?

I'm building the browser editor of Solidity using Ace Editor, and I am trying to highlight the syntax. Remix uses Ace Editor as well, but I don't know how they successfully highlighted the syntax. ...
1
vote
0answers
204 views

Setting boolean variable does work in Remix but doesn't work is Mist

When I run the following code in Remix IDE it works well, but when I deploy the contract in Mist on the Main network or on Rinkeby it sets the string variable, but not the bool. users[msg.sender]....
1
vote
0answers
110 views

How to solve the out of gas problem in executing a complex solidity function consisting lots of iterations

How to solve the out of gas problem in executing a complex solidity function consisting lots of iterations and operation. This is my code
1
vote
0answers
36 views

List of publicly available ethereum nodes (geth debug rpcapi)

As a fun of Remix Debugger, it's necessary to connect to geth nodes with debug API turned on. I'd like to know if there is list of such nodes.
1
vote
0answers
209 views

Cannot call contract's function in Remix

I have successfully deployed the following contract on ropsten (in order to understand reverts better): ``` contract Test { bool test1; bool test2; function Test() public { test1 = false; ...
1
vote
3answers
257 views

Repetitive validation through Modifier or function

What is the benefits from writing repetitive validation as functions instead of modifiers? The documentation clearly recommendations to use modifiers yet 'best practice' open source parties such as ...
1
vote
1answer
3k views

How to fix “invalid argument 0: json: cannot unmarshal hex number with leading zero digits into Go struct field CallArgs.value of type *hexutil.Big”?

Using Remix and metamask, I have deployed a contract on the rinkeby network that contains a function that, when called will send unsold tokens to a specific address. The code for it is like this ...
1
vote
0answers
288 views

Error encoding arguments at position 2

I keep getting following error: SyntaxError: Unexpected token “ in JSON at position 2 when I try to call following function, below is how I call it. ["ADDRESS","ADDRESS"],"STRING" This is ...
1
vote
1answer
124 views

Is there an explorer like Etherscan for Remix JS VM sandbox blockchain

I created a contract and did some transactions. I would like to explore the transactions in the sandbox blockchain in my brower (Chrome). But the tx hash is not found in the REMIX VM Debugger http://...
1
vote
1answer
107 views

Solidity IDE Parser Error on Token Name

Getting this in Solidity: browser/ballot.sol:121:16: Parser Error: Expected Primary Expression. Here is my code, says that it is the name line with the parser error function ERC20Token( ) { ...
1
vote
0answers
253 views

Getting dynamic array from one contract to another in Solidity?

I am trying to get an array from one contract to another like this.. contract Firma { address owner; struct Firmas{ bytes32 name; uint pNum; } function Firma() { ...
1
vote
2answers
1k views

Remix: This contract does not implement all functions and thus cannot be created error

I have 2 contracts: pragma solidity ^0.4.18; contract Coin { function transfer(address whom, uint256 amount) public; } contract ManagedWallet { event ReceivedEther(address source, uint256 ...