Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [remix]

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

4
votes
0answers
394 views

Event and/or watch does not work

I have a contract for a simple bidding scenario as below: pragma solidity ^0.4.9; /* Contract accepting biddings during 30 minutes */ contract SimpleBidding { address contractOwnersAccount; ...
4
votes
0answers
268 views

Gas cost for bigInt library

I am working on a big integer library in the online compiler. Currently having gas/computational time issues with the modulus function. I first implemented it using repeated subtraction: function ...
4
votes
0answers
116 views

Contract works fine in Solidity-browser but not against private node

I have been testing a contract using the Solidity Browser, but when I deploy the same contract on my private node, it doesn't seem to work the same as in the Solidity Browser. I have tried manually ...
3
votes
0answers
99 views

Solidity : About function calls between deployed contracts

I want to make a function call between a token (MyToken.sol) that inherits MintableToken.sol of OpenZeppelin and manipulate that token (Buy. Sol). (MyToken.sol) pragma solidity ^0.4.21; import "...
3
votes
0answers
435 views

Why the transaction reverted?

Try to run my contract in remix JavaScriptVM and faced with error. Contract code: ... /** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */ contract ...
3
votes
0answers
188 views

Contract creation from another contract succeeds, then fails?

I have a first contract with some very basic functionality : contract ContractA { uint public supplyA; function ContractA (uint _supply) { supplyA = _supply; } function ...
3
votes
0answers
86 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 ...
3
votes
0answers
155 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 ...
2
votes
0answers
30 views

Why I can't use two functions with same name, but different parameters

I have a function which returns address but it gives me error if I try to read it. I'll explain by a quick example: Solidity: contract TestOneReturn { mapping(uint => uint) m_Data; ...
2
votes
0answers
24 views

How to get v,r,s parameters from transaction receipt in remix ide?

I am trying to get v,r,s parameters of a transaction so that I can use them to verify the signature. I am not sure but I think previously remix used to give these parameters in transaction receipt. I ...
2
votes
0answers
72 views

Difference between execution costs on remix an Ganache?

I created a contract on remix and then deployed it. when I call any function there is an execution cost in gas. I also deployed the same contract on Ganache for testing. I find the execution cost in ...
2
votes
0answers
354 views

Contract too large

I am sure this has already been answered but I could not find a clear answer. I get the following error: Contract creation initialization returns data with length of more than 24576 bytes. The ...
2
votes
0answers
42 views

Estimated gas is always low

web3.eth.estimateGas is always calculating low gas for the transaction. Here is a reference to a trasaction in ropsten. https://ropsten.etherscan.io/tx/...
2
votes
0answers
104 views

Getting Json file from remix

I have been deploying contracts on rinkeby but we are almost done to go to mainnet. I have been comparing deployments with truffle and remix and there is a huge difference in gas uses, so I would ...
2
votes
0answers
53 views

Gas Estimation Failed for Airdrop for sending Tokens to Multiple Addresses using Remix

I have deployed a Crowdsale contract and now I need to send my Tokens to a list of addresses using remix and injected web3. I am using below code for Airdrop but when I send tokens to multiple ...
2
votes
0answers
61 views

Input data into remix through javascript

I am trying to update and call data to remix using node js. I have the temperature captured in my js code and I am trying to call it using the updateWeather function. Node.js code let request = ...
2
votes
0answers
632 views

Invalid asm.js: Invalid member of stdlib when loading Remix IDE

When I try to load the remix ide on browser I'm getting the following on the console of the browser Loading https://solc-bin.ethereum.org/bin/soljson-v0.4.21+commit.dfe3193c.js without worker ...
2
votes
0answers
102 views

Solidity libraries with public visibility

Suppose I have the following Contracts and a Library: pragma solidity ^0.4.21; library UserLib { function insertUser(address dbAddr, bytes32 user) public { DB(dbAddr).setUser(user); } } ...
2
votes
0answers
214 views

Create a child contract from parent contract via remix

I was trying to create a new contract from another one like this: pragma solidity ^0.4.8; contract Child { address public owner; function Child() public { owner = msg.sender; } }...
2
votes
0answers
123 views

Reasons for and debugging a contract that failed when deploying into blockchain

I have a program that has been tested from remix's VM, and compiled with solc, in both cases without any failure. However, when I try to use a custom script for deploying it into the rinkeby testnet (...
2
votes
0answers
127 views

Remix/Android wallet app?

Is it possible to create an ethereum smart contract using remix from the browser of your android device and then linking it to your android ether wallet app without using a PC anywhere along the token ...
2
votes
0answers
481 views

Remix Testrpc “base fee exceeds gas limit”

I am following this great tutorial from Ed Zynda. I started testrpc and tried to deploy the FuncToken.sol to a Web3 Provider. I managed to connect to the local RPC (have to change protocol from https ...
2
votes
0answers
399 views

Token contract and crowdsale contract deploy

I am Testing with an Ethereum Based token contract and i would need some help deploying the Token contract and Crowdsale contract. I already have done this, deploying booth contracts and allocating ...
2
votes
0answers
129 views

Is there a “gas penalty” for using too many asserts in a contract?

I'm at a very puzzling scenario. While using Remix, I noticed that adding a few asserts has caused a significant increase in execution cost (from ~50K to ~59K). And not only did it increase the ...
2
votes
0answers
232 views

what does the UnimplementedFeatureError mean?

I'm getting the following error in remix.UnimplementedFeatureError: Non-padded store for function not implemented.
2
votes
0answers
314 views

Remix debugger stops at external function call from another contract with Invalid opcode error

So I have token contract pragma solidity ^0.4.11; contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg....
2
votes
0answers
654 views

What can I do about an “Invalid sender” contract deployment error?

When deploying a smart contract, I get this message: "Error: invalid sender undefined." See details below. Why is this happening? What do I need to do differently? I wrote the smart contract below ...
2
votes
0answers
267 views

Optimizing 512-bit bigInt library

I mentioned last time that I was working on a big integer library. After some work, I have managed get 512-bit arithmetic kinda working!!!! Credits to /u/benjaminion for the modSmall function. Here ...
2
votes
0answers
60 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 {...
1
vote
0answers
110 views

web3.eth.getAccounts() : Cannot read property 'map' of undefined

const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const provider = new HDWalletProvider( 'passphrase', 'rinkeby.infura.io/v3/mytoken' ); const web3 = new ...
1
vote
0answers
21 views

Solidity v0.5: Data location in return values of function

I am aware that we need to specify data location for returned values in function as of Solidity v0.5. Is this the case for all variable types (I have come across sources that mention it is only for ...
1
vote
0answers
47 views

Connection of web3 with Ropsten

How do I connect my web3 to ropsten network. I know how to pass the url of ropsten netwrok in web3 instance in my script tag but when i try to to console.log(web3.eth.defaultaccount) it gives me ...
1
vote
0answers
26 views

access remix addresses within contact

I want to write tests for my simple solidity contract and one of the tests I have is to pass an address dynamically from remix or ganache-cli. Is there a way to access all other addresses from remix ...
1
vote
0answers
39 views

exception calling another contract method

I have tried this several ways. In the simpliest form, I put both contracts in the same file, and Im still getting an issue when I try and run this in the browser compiler remix. Also, I am using ...
1
vote
0answers
49 views

Remix: Potentially should be constant but is not.

I am trying to execute a contract provided as a tutorial for Remix at the following link: https://gangachris.com/posts/a-look-into-remix-ide/ The contract is: pragma solidity ^0.4.20; contract Cars{...
1
vote
0answers
22 views

web3js send transaction failed when contract modify mapping data , but remix work

first, web3 version: 1.0.0-beta.36 the contract code is: pragma solidity ^0.4.25; contract Main { struct Model { uint256 key; uint64 createTime; } Model[] public models; mapping(...
1
vote
0answers
25 views

SSL Certificate for remix-ide environment

I have installed remix-ide in my azure vm.Through http:/publicip:8080 i can able to access the remix-ide environment but i dont know how to make it as a https and where to mentioned the ssl ...
1
vote
0answers
108 views

passing byte[] to smart contract using nethereum

I made a solidity function that allow a user to send multiple transactions with the same nonce as a singleton Tx signer: function multipleTransferPreSigned ( bytes[] _signature, address[] ...
1
vote
0answers
52 views

Triggering contract fallback function by sending ether from another contract

contract A { uint public u; event abc(address); constructor() payable{ u=100; } function () payable{ emit abc(msg.sender); u = 25; } function setu(uint i) { u = i; } function ...
1
vote
0answers
88 views

Execute javascript code in Remix IDE?

I noticed that the remix IDE now says that I can run Javascript code from .js file. I can't find any documentation. Is this possible? How do you do this? Thanks!
1
vote
0answers
89 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
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
34 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
14 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
46 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
20 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
0answers
84 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
127 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
142 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
198 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 ...