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
0
votes
1answer
178 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
379 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
218 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
395 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
402 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
156 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
43 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
437 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
1answer
104 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( ) { ...
0
votes
0answers
67 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
203 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
88 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
52 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
316 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
47 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
153 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
139 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
519 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
2answers
41 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
18 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 ...
0
votes
1answer
2k views

Remix Solidity Compiler does not work after the update on my browser

http://remix.ethereum.org Remix Solidity Compiler does not work, solidity compiler does not show up. I guess there is heavy load on the web-page of remix so browser could not handle it and freezes. ...
0
votes
1answer
60 views

Parent-Child Contract Synergy Broken

When I call a function from a child contract which has been generated through a parent contract, then the mapping within the parent contract which consist of information related to the child contract (...
-1
votes
1answer
233 views

How to diagnose “invalid opcode” when compiling?

I have a huge contract so isolating the cause will be very arduous manually. Is there any way to get an indication automatically of what might be causing an "invalid opcode" error?
-1
votes
1answer
231 views

why appears this warnings

browser/ballot.sol:3:28: Warning: Functions in interfaces should be declared external. interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes ...
-1
votes
1answer
73 views

Trying to create a simple coin, but getting warnings for the last two functions. Can you find and solve the error?

pragma solidity ^0.4.0; contract Bubblecoin{ mapping(address => uint) balances; uint supply; function totalSupply() public constant returns (uint){ return supply; } ...
-1
votes
1answer
319 views

What is the problem with Transfer function?

Here, ERC20(token) - 'token' is given Undeclared identification issue, why? // low level token purchase function function buyTokens(address beneficiary) public payable { require(beneficiary != ...
-2
votes
1answer
257 views

ParserError: Expected '(' but got identifier function OrderItem(uint _itemid, string _itemname) public returns(address){

browser/Logistics.sol:60:14: ParserError: Expected '(' but got identifier function OrderItem(uint _itemid, string _itemname) public returns(address){ ^-------^ pragma solidity ^0.4....