Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [remix]

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

415 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
257 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
372 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
283 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....
1
vote
1answer
262 views

why does it not work if I don't handle the return value of call/callcode/delegatecall?

This is my Contract code : pragma solidity ^0.4.15; contract D { uint public n; address public sender; event CallStatus(bool); function callSetN(address _e, uint _n) { if (!_e.call.gas(...
1
vote
2answers
919 views

(Remix IDE) Getting VM error: invalid opcode in Javascript VM,

I'm creating an ERC20 token that will have 9 separate funding rounds. When I call the startNextRound function in the JavaScript VM, I get the following error: transact to browser/SatanCoin.sol:...
1
vote
0answers
62 views

when i call myMethod().send() using web3 state vars aren't updated and there is no transaction cost?

I am calling a method on my contract like so... contractInstance.methods.addSchool(result, web3.utils.fromAscii(req.body.schoolName)).send({from: defaultAccount}) The transaction is mined but no ...
1
vote
0answers
87 views

Puzzling “Warning: ”this“ used in constructor.” thrown by Remix static analysis

For the following code: pragma solidity ^0.4.17; contract someContract { function someContract(address _someAddress) public { uint someNumber = 1; if (_someAddress != ...
1
vote
1answer
105 views

browser-solidity debug alternative for more automate process (rather than manually type in the function input everytime)

As specified in the title I use truffle to test now, but often times it just returns the error msg "invalid opcode" instead of clearly stating what happened. Any other testing/debugging tips will ...
1
vote
1answer
595 views

Parameters for Multisig Smart Contract

I was referring to multisig smart contract posted at below URL: https://github.com/ethereum/dapp-bin/blob/master/wallet/wallet.sol However, I am getting confused with some of the parameters to be ...
1
vote
0answers
759 views

How to access Token functions in remix.ethereum.org?

I'm looking at Crowdsale.sol from OpenZeppelin / zeppelin-solidity. Here's a snippet: import '../token/MintableToken.sol'; contract Crowdsale { MintableToken public token; After I create the ...
1
vote
0answers
808 views

Connecting Remix IDE to Rinkeby node

I have read this question but it didn't solve my problem. I'm trying to connect the Remix IDE to a running node on my computer. The node is running without issues, it's connected to the Rinkeby ...
1
vote
1answer
145 views

Constantly “Waiting to be mined” after certain call in contract

I have a crowdsale contract, that seems to be working fine. It receives funds, and returns a token in exchange. However, once its past the deadline, and I run the checkGoal() function, the contract ...
1
vote
0answers
84 views

When calling my Get function, Remix is giving me the current value and geth+parity is giving null

I have a contract that holds hashes of files and different versions of those files inside a struct. // // Structure which holds information about an entry and the versions that entry contains. // ...
1
vote
1answer
504 views

return msg.sender.balance not acting as expected

I'm using MetaMask to connect to Rinkeby and I'm deploying the contracts via Remix. When I call the function returnsenderbalance it returns ...
1
vote
0answers
74 views

Check coinbase balance in Ethereum online compiler (Remix)?

Is there a way to check the balance of the accounts when using the online compiler in Javascript VM mode?
1
vote
0answers
230 views

How to create an account from a Spring MVC project

I am working on Ethereum blockchian. I have create a login page using Spring MVC 4 and it is connected to MySQL DB. Now I want to assign coinbase to the successful registration of the user. My Idea ::...
0
votes
2answers
14 views

Getiing error in remix while using oraclize

Getting this error" called function should be payable if you send value and the value you send should be less than your current balance" even when i set value
0
votes
0answers
18 views

How can I call selfdestruct when it is located in a constructor and not in the ABI of my contract?

I am reading some tutorials and while planning to deploy test contract on ropsten I have something like this: pragma solidity 0.5.1; contract destroy { constructor(address payable receiver) ...
0
votes
0answers
22 views

GasToken.io free transaction fails above certain 'threshold'

I've played around with the gastoken.io GST2 contract in remix (and on the mainnet) and immediately stumbled across the following problem: If I want to free previously minted token the execution of ...
0
votes
2answers
24 views

Linking to Compound Smart Contract

I'm still new with the solidity and it seems to be a very basics question. What i'm trying to do is to call the link the compound smart contract with mine. And when i try to compile is complaining : "...
0
votes
1answer
14 views

How to substitute attributes instead of roles in access control coding for solidity?

Say, the role-based access control consists of two roles. But if I want to replace the roles to maybe location and time, how to go about it?
0
votes
3answers
70 views

Gas estimation failed - remix

I am trying to figure out what is wrong with the following code as it does deploy successfully on remix. pragma solidity ^0.5.11; contract MyContract { // Storage address contractOwner; ...
0
votes
2answers
18 views

How to find private keys on Remix ide

I want to sign a message on Remix and I can't find the pair of private/public key. For example - I going to Deploy & Run Transactions, then trying to "Sign a message using this account key" with ...
0
votes
0answers
9 views

Failed to decode output: Error: invalid utf8 byte sequence; unexpected continuation byte

pragma solidity ^0.4.20; contract TestBytes32ToString{ function bytes32ToString(bytes32 x) public pure returns(uint,uint,uint,string memory){ bytes memory bytesString = new bytes(32); ...
0
votes
1answer
27 views

Can I write a smart contract to access a database and verify details of a student?

I have to write a smart contract to create a degree certificate of a student in the University. To generate the certificate, I have to clear all the dues in my University's library, Sport's department,...
0
votes
0answers
34 views

Comparison of 2 child-contract-values in factory-contract

in my solidity code I create a tracking-contract and auction-contracts out of a factory-contract. The last function 'a4_Payment' of the auction-contract should be triggered out of the master-contract ...
0
votes
0answers
18 views

Can a factory-contract access/read/modify variables in generated child-contracts?

at the moment I am experimenting with the factory/child-logic in solidity. With my factory contract I am able to create child contracts in which an auction is executed. Now I want to return a variable ...
0
votes
0answers
30 views

How to connect Remix desktop to connect to MetaMask?

I downloaded the desktop version of Remix, and am trying to connect it to the main network. I can do this in the web version of Remix easily, opening up MetaMask on my browser. However, in the desktop ...
0
votes
0answers
9 views

How to simulate 2 accounts on the same Ropsten network using MetaMask and Remix?

I was able to deploy to the contract and everything but I wanted to see another account interacting with the contract, but on Remix only one account at a time
0
votes
0answers
11 views

Auction Contract with “Right to Bid”

I build a basic reverse auction you see here using Solidity and the ethereum remix IDE. In addition to the functionalities already implemented I would like to add a "SafetyLimit" amounting to half the ...
0
votes
0answers
19 views

Remix forced error

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. I got this error on my remix when I ...
0
votes
1answer
36 views

Cannot deploy new contracts with pending transactions (Ropsten)

I have a very strange and annoying problem. I am trying to deploy a new contract however it just keeps cycling. I have the same problem on the POA testnet and on Ropsten. Please see below: I have ...
0
votes
0answers
31 views

Is it possible to see the execution cost of a function before it is executed?

I would like to assert the cost of an execution within a Solidity (5.x) function before executing it. To the best of my knowledge, this sounds like an incomputable problem, but I would like to check ...
0
votes
0answers
39 views

remix compiler just won't end compiling

I've just started my journy with etherium, so now I am trying to get my first script complied. I tried starting with this project https://github.com/san-lee-ai/simple_auction But I could not get the ...
0
votes
0answers
40 views

Smart Contract is not working on Geth private network, while it does work on Ganache as well as Remix

I've only begun working with geth from last week and have faced the quite a challenge. I've written a smart contract and it works on remix (JavaScript VM) but somehow it does not work on my geth ...
0
votes
0answers
35 views

Smart contract function not returning value (decoded output) in Remix

I am completely new to Solidity and would appreciate any help. I have a supply chain smart contract and it contains a function that is supposed to be called by customers and after the call, the ...
0
votes
0answers
31 views

One Proxy delegate contract to ten another proxy contracts

I'm trying to figure out why this code reverts. I need to make 10 bottles. This is how I do this: deploy Logic contract deploy 10 Proxy contracts call "upgrade" at each Proxy and pass Logic address ...
0
votes
0answers
13 views

what to sign to close the contract on JVM?

Full Contract I cannot sign the message correctly thus failing to close the contract.
0
votes
0answers
96 views

Remix never returns a transaction - but everything works - why?

This code supposedly works. Its supposed to let the owner withdrawal collected ERC20 tokens in a contract. It calls the balanceOf() for the erc20, then calls transfer(). Only have this error when ...
0
votes
1answer
44 views

One contract accessing data from another fails

I am trying to get two contracts to interact: pragma solidity ^0.5.10; contract C2 { address public addr; constructor(address per) public { addr = per; } function ...
0
votes
0answers
26 views

Simple functions and constructors not working

I am working with a private blockchain, and am having a problem where simple functions and constructors simply fail to work. For instance: constructor(address admin) public{ owner = msg....
0
votes
1answer
23 views

Two smart contracts interact can't pass value when I using web3.js

I have two different smart contracts interaction_1 and interaction_2 I input the data(team) from remix ide. What I want to accomplish is when user input team in user_input function at interaction_1,...
0
votes
0answers
28 views

not able to assign address to a public property using web3

while everything is working fine when working on remix ide but on truffle its not updaing value of a property (player2) i am also returning that address value and its returning as it should be. but ...
0
votes
0answers
12 views

TypeError: Function overload clash during conversion to external types for arguments

Why do I get following error "TypeError: Function overload clash during conversion to external types for arguments." when using compiler version ^0.5.0; but when I choose 0.5.2; and later releases ...
0
votes
0answers
32 views

Deploying contract using web3js but failed

I am a beginner for solidity 👶 My question about deploy using with web3js. I have two smart contract and in main contract I have a createContract function which is create a new subtoken contract ...
0
votes
0answers
28 views

Undefined Contract

I am finally able to come up with a compilable code. As I attempt to verify the contract, the Remix - Ethereum output is "undefined". Someone advice me on what to do. My ABI is as follows: [ { "...
0
votes
0answers
40 views

Transactions go to an older contract address rather than the present deployed one

Though I have deployed a new contract but the transactions go to a previously deployed contract in my application. I'm attaching the screenshot of my Remix-ide code and the code for the front end ...