Questions tagged [remix]

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

381 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
88 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 ...
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
13 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 ...
0
votes
1answer
19 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(...
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
90 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 ...
0
votes
0answers
59 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; ...
0
votes
0answers
45 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 ...
0
votes
2answers
410 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....
0
votes
0answers
43 views

transferFrom function works but approve does not

I'm building an escrow contract and using web3js to interact with it. Currently, I am trying to approve and send an amount of custom ERC20 token from a wallet to the escrow contract. The problem is, ...
0
votes
2answers
97 views

2FA / Authentication Through Smart Contract

How can I generate something similar to 2FA on-chain? Could the private key or public key be used somehow in secrecy to compute a value or something? I need a way to authenticate a smart contract user ...
0
votes
0answers
16 views

ethereum smart cotract ioT implementation

For the preparation of a project in my thesis, I need to implement ethereum blockchain to control the access of the IoT using smart contract. Can you recommend me a tutorial to prepare this without ...
0
votes
1answer
39 views

remix - gas limit exceeded, but contract is running on blockchain

i studying remix and ethereum, and create my local blockchain. and create contract with remix.the contract just print simple word. pragma solidity ^0.4.8; contract HelloWorld{ string public ...
0
votes
1answer
60 views

problem calling balanceOf from another contract

I try to learn solidity and i have a problem. I've created a base token and i want to call the balanceof method from this token in another contract. In Solidity Remix i get : call to BaseTokenBet....
0
votes
0answers
77 views

How does a message signed in Remix IDE?

What is signing method that is used in remix IDE and how is the hash value calculated from the message that is being signed?
0
votes
0answers
38 views

could n't find ABI constructor in my input data

I have developed the solidity code and need to verify the smart contract but I could not find Constructor Arguments ABI-encoded check the screenshots, i have developed in testnet
0
votes
0answers
26 views

How to create multi forwarder address (contract)?

How to create multi forwarder address (contract)? my code https://pastebin.com/raw/ADwPtz8q error InternalCompilerError: Compiled contract not found. pragma solidity 0.4.25; contract Factory { ...
0
votes
1answer
18 views

Error when checking the value in a mapping

I am trying to keep track of the number of bidders in my contract. function bid() public payable an_ongoing_auction returns (bool){ uint oldval = bids[msg.sender]; require(msg.value+oldval &...
0
votes
1answer
87 views

How to set default gas limit for my custom private network?

I've connected to my custom private ethereum network in remix with web3 provider. Everything was fine, account balance, and address was retrieved successfully. But I don't know why, but I could not ...
0
votes
0answers
14 views

What does endCliff and endVesting time means in PolyMath contract?

What does vesting and cliff exactly means in smart contract and blockchain terms. Here I've added code snippet: if (_supply == AllocationType.PRESALE) { AVAILABLE_PRESALE_SUPPLY = ...
0
votes
0answers
95 views

Is there a way to download Remix IDE locally and access it from the Terminal (Linux)?

Is there a way to download Remix IDE locally and access it from the Terminal (Linux)? Hi, I think I have read that it should be possible to download Remix IDE and use it offline. In the latest ...
0
votes
1answer
68 views

Unable to connect to 'Web3 Provider' on Remix using http connection

I am using an http connection to connect to the Web3 Provider using Remix. The port 8454 is listening as expected. I am getting the following error: Not possible to connect to the Web3 provider. ...
0
votes
0answers
27 views

How to accept tokens coming to my contract address and withdraw it on my Owner address in ERC223 token standard smart contract?

I want to withdraw tokens which are coming from different contract addresses, on my Owner address. I am working on ERC223 token standard and solidity version 0.5.1;
0
votes
0answers
92 views

Running out of Gas while deploying contract via web3.js

// contract is storing ABI var instance = contract.new( "0x12", // bytes32 "0x12", // bytes32 [], // array of addresses 11, // uint 11, // uint "...
0
votes
1answer
54 views

I want to withdraw amount from Receiver Contract's tokenFallback() function in ERC223 how to implement this scenario?

I am using ERC223 standard token transfer contract and receiver contract which includes tokenFallback(). I've transferred tokens from my ERC223 contract to receiver's contract address, now I want to ...
0
votes
1answer
40 views

Remix IDE: How can I open a file from GitHub repository ID

I want to compile and use a smart contract located in a GitHub repository on a specific branch or compile ID. I did it the same thing in the past but I've always used a URL which prompted the Git ID ...
0
votes
1answer
35 views

Getting error on sending ether/wei in payable function

error: transact to CampaignFactory.createCampaign errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The constructor should be payable if you send value. ...
0
votes
0answers
55 views

Remix Gas Error in ERC20 Token Contract

I successfully deployed to ROPSTEN a very simple ERC20 Token Contract - the code for which I copy-pasted from OpenZeppelin's GitHub repo. -I used remix to do this (see screengrab below) -I'm 99.9% ...
0
votes
0answers
226 views

Invalid implicit conversion from bytes32 to bytes memory requested

Error in given code, Invalid type for argument in function call. return ecrecover(operationHash, v, r, s); And, function sendMultiSigToken (address toAddress, uint value, address ...
0
votes
1answer
34 views

i want to get data from the transaction hash i tried many codes at last i am getting boxes in the output

1) First, I got the input console.log(web3.eth.getTransaction('0x725fc75264726f409793164e336e7d5ed35df8d2be469a0cc1a3a8cc4756b9b9').then((i) => console.log(i) )); 2) I manually pasted the input ...
0
votes
0answers
91 views

Error when executing transfer with sufficient funds

When executing a function which buys a loan from a portfolio (sellPortfolio in the code here), I get the following error: I am using Remix 0.5.2 and I have tried to run this from the Java front-end ...
0
votes
0answers
18 views

Research Papers related to Mythril, Truffle and ReMix

I have found research papers related to most of the testing tools like Oyente, Gasper, MadMax, Securify and so on but I can't find research papers related to Mythril, Truffle and Remix. Are these ...
0
votes
0answers
37 views

Working with 0.4.4 version of solidity, still got error, “Member 'transfer' not found or not visible after argument-dependent lookup in address.”

According to some resources, this well known error occur because of versions 0.4.X to 0.5.X change. Previously I compiled contract with ^0.5.1, to solve this error currently I'm using 0.4.4. But ...
0
votes
2answers
32 views

Optimization Exception Remix Editor

I am trying to compile my solidity code in remix editor. I keep getting this error "Optimization exception during compilation". I was using solidity version 0.5.2 till day before yesterday. Now, It is ...
0
votes
1answer
32 views

approve() and sendFrom()

Im trying to run the code below in a smart contract to use as an escrow. calling approve first and calling send from later does nothing to get the tokens into the smart contract, what am I missing ...
0
votes
1answer
98 views

Transaction fails during smart contract deployment from Remix IDE, while i confirm the transaction from MetaMask

I am able to connect to private ethereum network and able to do the transactions from Metamask, but while deployment of smart contract from remix IDE, it launches MetaMask and i get below error while ...
0
votes
2answers
47 views

i am trying to send ether to a list of addresses from backend

Below are few lines from the contract in which I am basically trying to send some ether to an array of addresses. Now, when can run this code in remix solidity by replacing "value" to "msg.value". But ...
0
votes
0answers
25 views

How to run the sample contract Blind Auction?

There is an contract example called Blind Auction, and I try to run this in the Remix compiler. Without any edition, I can deploy it. But every time I tried to run the bid function, error always ...
0
votes
0answers
34 views

Zero balance and double entrance

I am unable to set balance to zero to all of the subscriber except the winner so that winners gets the complete pool prize and other gets zero balance. Also how can I prevent a subcriber for a double ...
0
votes
0answers
53 views

How to generate sign to pass to transferPreSigned(), contract is not asking for sign while transfer()

I'm creating ERC865 token so that users can send tokens without having ether. I followed 1 and 2. As per 1, sender will sign transaction object while calling transfer() but I'm unable to see any "...
0
votes
0answers
100 views

Save data of variable of smart contract in js

can anyone let me know how to save data of a variable of my smart contract in javascript variable. for example if i have a function in my smart contract and that function returns some value now how do ...
0
votes
0answers
17 views

how to get return type of function of a deployed contract in another contract

I have 2 contracts - user and property. A person who is registered on the website through function registeruser in contract user, can only buy or sell a property in contract property. I have a ...
0
votes
0answers
32 views

In Tether Token issue() and redeem() functions belongs to which Standard?

function issue(uint amount) public onlyOwner { //_totalSupply + amount must be greater than the _totalSupply value require(_totalSupply + amount > _totalSupply); //balance of owner + ...
0
votes
1answer
39 views

i have erorr when sendTransaction web3

file javascript //smartcontract window.onload = function() { if (typeof web3 === 'undefined') { document.getElementById('metamask').innerHTML = 'Instal metamask dulu' ...
0
votes
1answer
131 views

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

I can't implement ERC223 contract. remix said " This contract does not implement all functions and thus cannot be created." please tell me what bad it is. pragma solidity ^0.4.25; library ...
0
votes
1answer
38 views

Remix - Solidity IDE - Gas requirements high

Compiled an "Auction contract" and got a warning regarding high gas requirements. Means: cannot run it. Below the lines with comments and that lines I included (//Part 1 Task n Line n). // CANNOT BE ...
0
votes
1answer
129 views

Remix - Solidity IDE - ParserError

Cannot compile the "contract Auction". Got this error for Miscellaneous methods. //Miscellaneous methods: Below methods are used to assist Grading. Please DONOT CHANGE THEM function getPersonDetails(...
0
votes
1answer
94 views

make a contract send a percentage to a specific wallet (always)

how can I make a contract send a percentage to a specific wallet (always)? Example that whenever a transaction is made from this token the 1% go to X wallet. Thank you. Ok felix dolderer thanks for ...
0
votes
1answer
57 views

Static Analysis raised 9 warning(s) that requires your attention. Click here to show the warning(s)

I receive these warnings in REMIX so the question is: Can I compile my contract and then verify it regardless of these warnings? pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a,...