Questions tagged [remix]

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

380 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
71 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
26 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
543 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
187 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
107 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
149 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
176 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
222 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
80 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
207 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
151 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
319 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
15 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
85 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
0answers
240 views

Can you deploy a contract from a Ledger Nano S using Remix?

I have deployed a contract from a Ledger Nano S before by connecting to MEW and deploying using Bytecode and ABI of the contract. However I do not know what compiler version MEW used and so cannot ...
1
vote
2answers
145 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
202 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
130 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
190 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
91 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
527 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
100 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
108 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
137 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
1answer
406 views

debug transaction in remix-ide not working

i want to debug a transaction in remix-ide, connected to my cpp-ethereum node on ropsten. When i input tx-hash and press play button nothing happens. What went wrong?
1
vote
0answers
83 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
126 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
91 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
202 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
476 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
18 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
84 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
57 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
379 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
187 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
105 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
35 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
198 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
243 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
2k 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
266 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
117 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
0answers
243 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 ...
1
vote
0answers
1k views

Zeppelin StandardToken infinite gas

I am trying Zeppelin StandardToken contract, and see warnings on infinite gas. Why this happens? Gas requirement of function BasicToken.transfer(address,uint256) high: infinite. If the gas ...
1
vote
0answers
362 views

'out of gas' error when running a payable function on Remix+TestRPC

I'm using Remix connected to TestRPC and I'm getting an out of gas error when calling the sendEther() function with the argument set to the address of one of the accounts created by TestRPC at startup:...
1
vote
0answers
282 views

Constantly out of gas on testprc

I am trying to connect remix to testrpc, but anything at all I run there gives me an "out of gas" message. I started the testrpc using testrpc -l 4500000000000 So I would have thought it would be ...
1
vote
2answers
2k views

Out of gas when executing contract via web3 js

I am having a trouble invoking contract via web 3 js in browser. I am using truffle develop and have migrated and run tests successfully. I am also getting the info when I console.log the contract....