Questions tagged [remix]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

What's the root cause “contract error - Gas estimation failed Gas estimation errored with the following message (see below)”?

Rest of the error: The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. I got that message on several cases, usually on different mistakes. What'...
2
votes
1answer
79 views

Remix + Metamask: The method personal_sendTransaction does not exist

I'm trying to deploy a contract to the Rinkeby Test Network through Remix and Metamask. Metamask seems to be properly configured: However, at Remix Run tab, the address dropdown shows no accounts: ...
0
votes
0answers
22 views

Cannot connecting Remix to LocalHost!

I'm using windows 10 and i cannot connect VScode to Remix, i have both 'npm' and 'node.js' installed on my system. But i cannot connect to LocalHost. It works for me on ubuntu, but again only on Brave ...
0
votes
1answer
20 views

How to remove byte code of deployed smart contract which was deployed using Ropsten Test Network?

I 've deployed my smart contract on Etherscan using Ropsten Test network. I can see there is bytecode for my deployed contract on ropsten etherscan. I want to hide or don't want to show the bytecode ...
0
votes
1answer
104 views

VM error: revert. revert The transaction has been reverted to the initial state

Here my contract pragma solidity >=0.4.21 <0.6.0; import "./CertificateOwnable.sol"; import "./CertificateStorage.sol"; contract Certificate is CertificateOwnable { CertificateStorage ...
1
vote
1answer
45 views

ParserError: Expected token Semicolon

I got this particular Parser error and can you help me how to fix this issue:while using this code pragma solidity ^0.4.17; import "../node_modules/zeppelin-solidity/contracts/token/ERC20/...
0
votes
0answers
26 views

how is GET https://solc-bin.ethereum.org/bin/list.json net::ERR_CERT_DATE_INVALID corrected?

I am trying to load Remix via the website in Chrome. Reported here - https://github.com/ethereum/remix/issues/1167 I get mock compiler: source not found and in the console - GET https://...
0
votes
1answer
94 views

Is it possible to deploy a contract from python web3 if I have the ABI and bytecode from Remix?

Question says it all. I have a contract that I've written and compiled via Remix. I've dumped the ABI and Bytecode into local files, and I'm reading them into my python application. I'm following the ...
0
votes
1answer
151 views

Gas estimation failed: gas required exceeds allowance or always failing transaction

I have two contracts one for defining token and other for crowdsale. I am using remix ide. pragma solidity >=0.4.22 <0.6.0; contract owned { address public owner; constructor () public { ...
0
votes
0answers
32 views

Manage accounts in Remix Web3 Provider env connected to a TestRPC client node

When I run the TestRPC client (ganache-cli), it provides me with 10 different accounts and private keys along with a local server at localhost:8545 Available Accounts (0) ...
1
vote
0answers
94 views

Smart contract will not deploy to my private blockchain when using Remix IDE

So I'm a complete newbie and trying to deploy my first smart contract to a local Ethereum blockchain. I'm doing this on a Windows machine. I have created a private blockchain using geth, made an ...
1
vote
2answers
27 views

Constructor should be payable error on adding money

pragma solidity ^0.4.17; contract supplyChain { address public state; uint public unitCost = 10; uint public totalAmount = 0; function supplyChain() payable public{ state = ...
1
vote
1answer
127 views

Zepplin Proxy Code Pattern

I am trying to understand the Zepplin proxy code pattern so i deployed two contracts using remix Token.sol (logic contract - basic ERC20 contract) AdminUpgradeabilityProxy.sol (From zepplin) https://...
1
vote
1answer
258 views

Retrieving block hash of current block vs previous block

What is the formula for retrieving the blockhash of 1) previous block and of 2) current block?
1
vote
1answer
25 views

What is the difference between Remix and Remix IDE

What is the difference between Remix and Remix IDE?
0
votes
1answer
40 views

Soldity RNG threat comparison between Tron and Ethereum

Would a function such as the following: function random(bytes32 seed) internal returns (uint) { nonce++; return uint(keccak256(abi.encodePacked(now, msg.sender.balance, nonce, block.coinbase, ...
1
vote
2answers
405 views

Why remix account is empty when select “Injected Web3”? [duplicate]

Why remix account is empty when select "Injected Web3"?
0
votes
1answer
48 views

Different number of arguments in return statement than in returns declaration

pragma solidity ^0.4.18; contract graduate{ uint studentId; string name; string major; uint totalGrade; function setGraduate(uint x, string y, string z, uint v) public{ ...
0
votes
3answers
68 views

REMIX:This contract does not implement all functions and thus cannot be created

What should I do? pragma solidity ^0.4.21; contract ScoreInterface { function hit() public; function score() public view returns (uint); } This contract does not implement all ...
0
votes
0answers
59 views

Solidity, Web3 - Invalid number of arguments to Solidity function when I have correct number

I created smart contract and I deployed it on Ropsten network using Truffle. I tested it from Remix and it works. I have there 2 view with a same name checkInputData but different number of parameters....
0
votes
3answers
74 views

Truffle and Remix compiles differently

I have a smart contract that outputs a different bytecode when compiled with truffle, and with remix, even though both seem to use the same compiler version: 0.5.7+commit.6da8b019 Is that a known ...
0
votes
2answers
36 views

Solidity how to check if user is already used another contract?

I am trying to figure out how to set up a simple communication between contracts. For example, we have a contract Passport, in which the user writes his data. After that, through the Election ...
2
votes
1answer
74 views

How do I send ether from user address to smart contract address using a function/method (without using msg.value)?

I am relatively new to programming in solidity and trying to build my own auction platform for demonstrational purposes. What I am trying to do is, to send ETH to a contract and whenever the auction ...
1
vote
0answers
25 views

How to use the Ethereum Natural Specification Format?

I would like to make use of the Ethereum Natural Specification Format (https://github.com/ethereumproject/wiki/wiki/Ethereum-Natural-Specification-Format) but I do not understand how to implement it. ...
0
votes
0answers
89 views

msg.sender.transfer(rewardUnit) causes a revert exception

I'm trying to send a reward to the worker who submits a task using commitTask function and line code msg.sender.transfer(rewardUnit). However, line keeps failing throwing a revert exception. Also I ...
2
votes
2answers
749 views

Issue with New version of Metamask: Remix cannot detect the Metamask address

I have just installed Metamask version: 6.3.1 Now in Remix, the address of my account in metamask is not detected. The account box in remix remains always blank now (see picture below). Note that I ...
0
votes
0answers
48 views

Metamask is not injecting account into remix IDE [duplicate]

I am working on remix and I have logged into metamask, but seems metamask is not injecting account into remix IDE. screenshot is attached. I have tried re-installing the metamask. I have tried re-...
0
votes
1answer
66 views

creation of SmartBillions errored: transaction execution failed [closed]

I am trying to deploy smartBillions contract on remix for learning purposes. And following error is persisted creation of SmartBillions errored: transaction execution failed Following is the code ...
0
votes
0answers
71 views

Getting an VM Exception while processing transaction: revert

Post trying to initialize a task using the initTask function, I keep getting a revert exception. I've tried to remove the condition (msg.value >= _rewardUnit*_rewardNum) from the function and ...
0
votes
0answers
15 views

What is the cause of bad jump dest

I tried to figure out how bad jump destination error occurs. I found this topic How to debug Bad jump destination error and I tried to follow what that topic do. However, after I deployed and ...
1
vote
0answers
27 views

Smart Contract ABI in Remix (Ethereum)

When I deploy smart contract on the Rinkeby network using Remix the ABI of smart contract does not contain its address, so how do I connect it with my frontend application.
0
votes
1answer
22 views

Compile source code error expected pragma

I am getting an error when coding a token with the Ethereum wallet. Namely, Expected pragma, import directive or contract/interface/library definition. function burn (uint256 _value)public returns(...
1
vote
1answer
398 views

Metamask address not detected on remix-ide

My Metamask address wont show up on remix-ide either run on localhost and remix.ethereum.org I also have tried it on brave and chrome, none of them show the address. please help me :(
0
votes
1answer
39 views

I'm trying to call a function from deployed contract, i get the following error

Gas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Invalid JSON RPC response: Contract ...
0
votes
1answer
72 views

Can't return string when function not pure? [duplicate]

See the below contract function of which return the string (Tested in Remix.org): pragma solidity >=0.4.22 <0.6.0; contract HelloWorld { function get() pure public returns (string memory){ ...
0
votes
1answer
30 views

my smart contract always return empty when testing with rinkerby network

I am trying to implement the simple storage. When calling set function, the contract will append a new Log object to logs array, and also return the related index to the caller for reference data. ...
0
votes
1answer
101 views

Dapp on Ganache and Truffle but… what about Remix?

My dapp runs well with Ganache and Truffle but how to deploy with Remix and connect the contract to web GUI without abi? I mean, i created a Dapp that runs really good on Ganache and i run the web ...
1
vote
1answer
38 views

Oraclize can't compile Remix “undeclared identifier”

I was following this, I assume, very simple tutorial for generating a random number using oraclize: https://www.youtube.com/watch?v=J05DBPdkeAo But I end up getting this error and I dont understant ...
0
votes
1answer
76 views

TypeError: Member “owner” not found or not visible after argument-dependent lookup in uint256

I am very new to solidity programming, I have issue while running one solidity smart contract. pragma solidity >= 0.4 .22 < 0.6 .0; contract DocumentManager { mapping(uint => Document) ...
0
votes
0answers
65 views

How should I pass a nested struct as a function argument in Remix IDE?

Example contract: pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; contract someContract { struct structOne { uint a; } struct structTwo { uint b; ...
1
vote
1answer
30 views

Encoded input params

I created a simple test contract with a single method: pragma solidity ^0.4.24; contract SimpleTest { function testFunc(string name, bool isFirst) public { //do stuff } } I'm ...
1
vote
1answer
30 views

Create Contract Solidity 0.5

My code works with compiler 0.4.25 but not with the latest version. I want to keep track of every "Contract 2" that "Contract 1" create. Contract 1 uint public countContract; address[] public ...
0
votes
0answers
51 views

How dapp owners pay for their clients transcaction fees in the Ethereum Blockchain?

I am currently dealing with a problem in Ethereum Blockchain. I wrote a smart contract in Solidity Language, about a site that someone can make his Registration and after the transaction is completed ...
1
vote
2answers
27 views

Why is solidity throwing “Note: The constructor should be payable if you send value. ”, when clearly the issue is elsewhere?

I'm writing a contract on Remix that is able to deploy and track child contracts. Here are the 2 contracts: pragma solidity ^0.5.0; Contract Factory contract ContractFactory{ ChildContract[] ...
2
votes
1answer
15 views

What is the alternative to using **label** in solidity inline assembly code?

What is the alternative to using label in Solidity inline assembly code? Label is deprecated in new version.
2
votes
1answer
241 views

Invalid implicit conversion from uint256 to bytes memory requested

I am trying to create a simple random function but it gives me an error. I can't figure out what I do wrong. Solidity 0.5.0; function random() private view returns(uint){ uint source = ...
0
votes
2answers
435 views

TypeError: Data location must be “memory” for parameter in function, but none was given

Contract fail to compile in IDE Remix.due to the following error: TypeError: Data location must be "storage" or "memory" for parameter in function, but none was given. version:0.5.6+commit....
1
vote
2answers
298 views

what is the meaning of 0x0? say when variable gets assigned to it, example: keccak256(number) = 0x0;

Is 0x0 just zero? thanks keccak256(number) = 0x0; Or when not used as address I mean just to denote variable?
0
votes
1answer
14 views

error handling in sending custom token to multiple addresses in one transaction

i am trying to write a contract in which there is a function to divide the amount into equal parts and then deposit it into multiple accounts in one transaction. The problem is that, i want function ...
0
votes
1answer
33 views

Gas specification for function call

Is it possible to specify gas cost for a particular function call? E.g. Let's say I want a transfer() function to cost 50000000 gas, would I be able to hardcode this into the function?