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
0
votes
0answers
110 views

Can't send ether to the contract

I'm using My ether wallet on Ropsten, Brave(Metamask Ropsten) and Remix Ropsten Injected Web3. The first transaction was successful (0.5 ether received),https://ropsten.etherscan.io/address/...
0
votes
0answers
212 views

Unable to verify deployed contract! Error! Unable to generate Contract ByteCode and ABI

I already searched and many of the people got this issue, I tried that but unable to fix this issue. I have deployed a contract and Contract Address is here. I am getting this error Error! Unable to ...
0
votes
1answer
85 views

How to connect to a peer in ethereum and then run contract on ethereum?

I have developed a smart contract and run it with remix in cases of javascript vm and web3 provider. Now, I want to run it such that my computer to be connected to real ethereum network. I think in ...
0
votes
1answer
117 views

A contract works in remix but not when used with truffle

Below is the contract: uint32 firstTimeUserPoints=10; struct struUser{ string orginalName; string originalKshoplink; string orginalDocumentConvention; bool ...
0
votes
0answers
212 views

How to deploy a Smart Contract in Ethereum on Azure?

Iam trying to deploy a smart contract in Azure's Ethereum on Azure. I have created a blockchain in that but now I need to deploy a smart contract and design a UI for the same. I want to use Remix to ...
0
votes
2answers
305 views

Is there a way to dynamically create a contract that points to a previous contract?

I would like to implement a tracking system .. where i track events between two parties who deliver an item between them .. then the receiver would deliver it to another person and so on... I would ...
0
votes
0answers
229 views

In truffle Console Works, but when called in Javascript, Metamask hangs, Solidity contract doesn't update

So I have a function where I am asking the user to send two strings and 1 ether at the same time. When I execute the function in the console, the solidity contract is updated. When I execute the same ...
0
votes
0answers
260 views

How connect to my geth from Remix? IPC is always \\\.\\pipe\\geth.ipc

I am trying to develop smart contract & dapp with Window 10. I made my own accounts in local testnet in geth. And I'd like to make smart contracts and deploy them on the Remix. so I need to ...
0
votes
0answers
109 views

Using Oraclize for ICO smart contract

What is the advantages of using Oraclize for the development of an ICO Smart contract? doesn't it just add unnecessary complexity?
0
votes
1answer
16 views

if statement evaluate incorrectly when calling contract from another contract on Remix

I have a simple piece of code but I can't not get it to work correctly. pragma solidity ^0.4.18; contract Interface { function transfer(address _to, uint256 _value) public returns(bool); ...
0
votes
1answer
126 views

Generating ERC20 Token on main network

I have done up the scripts on Remix and managed to generate Tokens successfully on Ropsten Network. However, when using the exact contract script on actual main network, the status remain as "pending ...
0
votes
1answer
178 views

Solidity | How to throw “string” argument using Send() function?

I have a function which get a parameter as String and compare it like below. function freezeAccount(string _value) onlyOwner public { if (keccak256(_value) == keccak256("true")){ isFrozen = "true"...
0
votes
2answers
302 views

Stuck at emitting an event in Solidity

I am stuck at Step-6 of Bitdegree's Solidity tutorial. Question is to Emit an event ScoreChanged with two arguments: int amount (equal to the value that was sent) and bool direction (true for up ...
0
votes
0answers
27 views

Return a value while hiding output from logs

I would like to return a value to one ethereum address without the other parties of the contract seeing the returned value. The returned values always show up in the logs as decoded output. How do I ...
0
votes
1answer
105 views

Is remix ABI generator still working?

I have recently used the ABI generator fo remix, but when I copy the ABI and paste it in my Geth I get an error: var abi=x; // where x is abi copied from remix ethereum website. However, if I copy ...
0
votes
1answer
167 views

A function declared payable is throwing a VMerror:revert in Remix

I was trying to fund a campaign created with a funding goal 10000000000000000000 and funding cap 10000000000000000000 by calling the payable method contributeMsgValue with parameter["...
0
votes
1answer
271 views

Solidity: Error Member “value” not found or not visible after argument dependent look up in the function address

I am trying to make the funds withdrawn from 3 accounts automatically after a certain event. I am unable to fix this error from the Remix IDE. Please can someone let me know what am I doing wrong... ...
0
votes
1answer
163 views

Infinite gas error in remix ide

I had this code previously in which I was trying to create a struct to store 13 strings and I was getting error CompilerError: Stack too deep, try removing local variables.. Code: pragma solidity ...
0
votes
3answers
214 views

Remixd fails to run, cannot find web3-requestmanager

I have installed remixd using NPM. If I run it, it gives me the following error: Error: Cannot find module 'web3-requestManager' at Function.Module._resolveFilename (module.js:555:15) at ...
0
votes
1answer
508 views

Time Specified calls in Solidity using Oraclize

I have started learning coding in Solidity and I have written the below contract using the official Oraclize guidelines. My aim is to: Make the update() function be called on its own on the ...
0
votes
1answer
173 views

Expected primary expression.-Error in compiling Solidity code

pragma solidity ^0.4.17; interface IERC20Token { function balanceOf(address owner) public returns (uint256); function transfer(address to, uint256 amount) public returns (bool); } ...
0
votes
0answers
197 views

Out of gas runtime error (Gas limit > Gas usage)

I'm using remix to test out a particular contract method (both using the Javascript VM and a local blockchain via Ganache), and get this error for a specific contract method: function withdrawAll() ...
0
votes
1answer
181 views

Can't send ether to crowdsale contract (fail) + infinite gas bug on Remix

I'm a newbie trying to make a crowdsale contract in Ropsten (deployed a token contract very well before) but i meet some problems : I can't send ether to crowdsale contract, returning a fail status ...
0
votes
3answers
476 views

Burn 0.5% token after every successfull transaction

I am just starting in blockchain development and just start learning solidity. I have created some TokenERC20 tokens and deploy on Ethereum Blockchain. I can easily transfer my token by ETH in my ...
0
votes
3answers
277 views

CrowdSale basic contract sample showing Gas limit error

Hello I have copied Basic contract from official website https://ethereum.org/crowdsale I'm beginner in Solidity and Ethereum development It was successfully compiled by Remix but when I click "...
0
votes
1answer
184 views

Loading truffle library in remix browser IDE

Besides writing smart contracts in the browser, I would also like to write my test in this IDE. Any suggestions how to load the truffle files in http://remix.ethereum.org? I appreciate your help!
0
votes
1answer
390 views

Remix Gas limit exceeded regardless of how high I set it

I am deploying a crowdsale contract in Remix but no matter how high I set the gas limit (set it to 40000000 once) or even how much I change the value field I can't get this contract to not exceed the ...
0
votes
0answers
224 views

Why is the value of variable in solidity state empty?

I have the following code contract User { using strings for *; address public DB; function User(address _DB) { if(_DB == 0x0) throw; DB = _DB; } function setUser(...
0
votes
1answer
113 views

How to create contract in geth private blockchain network?

I am able to publish my contract in testrpc , but when i am trying to publish same contract in geth, i am getting below error: creation of lease errored: Gas required exceeds limit: 3000000. An ...
0
votes
1answer
414 views

Gas estimate infinite

This is my code pragma solidity ^0.4.19; contract FirstContract { address creator; uint256 priceOfATransaction = msg.value; uint256 totalAmount; address buyer; function ...
0
votes
2answers
414 views

Getting Invalid sender error while creating contract from remix

I am getting Invalid sender error while creating contact in private network. Though i have kept chainId and networkId are same.
0
votes
1answer
157 views

JavascriptVM(remix) bug deploying multiple tokens

I'm currently coding a crowdsale for school in which the fictious participants can buy a token. During the first round the participants would also get a second token which would act as a governance ...
0
votes
1answer
44 views

Gas requirement of function postrecord on retrunstring is high, anyone know how to bring it down?

pragma solidity ^0.4.0; contract insure { address public doctor; function Person() private { doctor = msg.sender; } modifier onlyDoctor { require(msg.sender == doctor); _; } } ...
0
votes
0answers
461 views

can we implement proof of stake contracts or proof of stake based token in solidity on ethereum network?

I have written a contract in solidity that operates on the basis of proof of stake. I want to know is it possible to create a pos based token or contracts and deploy them on ether network. And are ...
0
votes
0answers
69 views

Struggling with Interactions and Effects when coding

I don't think there is a better place to ask than here. I enjoy coding but I feel like I'm having an uphill battle when I'm getting to the interaction and effect part of various functions, what sort ...
0
votes
0answers
205 views

Can't Send ETH to Crowdsale in Ropsten

I'm trying to test a token sale contract on the Ropsten test network but am having an issue. I am using Ethereum Wallet. I am following the guide at http://www.ethereum.org/crowdsale. I am getting ...
0
votes
2answers
93 views

Can i make all the functions in my smart contract as constant?

What if i make a smart contract that does modify the state, but the all its functions are constant.(it will still compile) It means that i can use my smart contract for free without paying for the gas....
0
votes
1answer
53 views

Unable to change the length of a global 2D storage array

I am facing difficulties changing the length of a global 2D storage array. It seems to be working correctly on Remix IDE, but when I try to test it on ganache-cli (formerly known as testrpc) - either ...
0
votes
1answer
329 views

Error when trying to create new Solidity contract using Geth

Very new to Geth and Ethereum, and I'm just trying to create my first contract and deploy it to my private blockchain using Geth. Geth version 1.7.3 Below is my Solidity contract code: pragma ...
0
votes
1answer
51 views

minimumBet Appears to be Returning Incorrect Amount

I'm following this tutorial, which seems like a great intro to solidity contracts, but I've got an issue where I don't see the same results as on the post. When calling minimumBet from remix.solidity,...
0
votes
1answer
161 views

Transfer a fixed value of ether

pragma solidity ^0.4.19; contract Test { address one; function Test(address _one) public { one = _one; } function send1() public payable { one.transfer(10); } function send2() public ...
0
votes
1answer
2k views

Airdropping ERC20 Tokens to multiple addresses in a single transaction

done , wrong question. better to use this contract ERC20 { function transfer(address _recipient, uint256 _value) public returns (bool success); } contract Airdrop { function drop(ERC20 token, ...
0
votes
0answers
26 views

What's the best way to monitor contract variables whilst developing?

I'm running a contract locally using Truffle, is there a way I can keep track of the variables in real-time whilst interacting with it on the front-end (Web3). I guess what I'm looking for here is ...
0
votes
1answer
143 views

Missing Token Contract Address

Two months ago, I wrote solidity contracts on remix.ethereum.org. They compiled and ran fine. This code, which you can see here https://gist.github.com/anonymous/1b5c669c09683f285d44c36ab40555dd , ...
0
votes
0answers
525 views

“callback contain no result Error: Error: base fee exceeds gas limit” when call selfdestruct function (using Remix IDE)

I'm testing this simple contract. All the functions works well, but when I call the kill() function I'm getting this error: callback contain no result Error: Error: base fee exceeds gas limit I'm ...
0
votes
1answer
34 views

Need a guide to access my ropsten test network contracts through my command line and not remix

I have written and published a contract on the ropsten test network using remix. Now I want to access the functions of the smart contract from my command line (My PC) and not the remix IDE. Is there a ...
0
votes
2answers
44 views

ParserError: Expected pragma, import directive or contract /interface/library definition

In an attempt to compile my ABI and verify my contract, I am getting the following warning: "ParserError: Expected pragma, import directive or contract /interface/library definition" on the first line ...
0
votes
3answers
43 views

condition check of struct mapping in solidity?

struct User { string username; string password; address userid; bool isAdmin; } mapping (uint => User) users; function checkIfUserExists(address userid) public ...
0
votes
2answers
49 views

Remix IDE: Infinite gas problem with withdraw(…) method

I am trying to compile the following contract. I am using Remix IDE. It is giving me infinite error in the Withdraw method. pragma solidity ^0.4.24; contract financialContracts4{ ...
0
votes
1answer
19 views

create Tookens problem

For some time I have been writing my own tooken. I call it COIN I come across the last three problems: my fallback function does not work code: function () payable { createTookens (); he ...