Questions tagged [remix]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
274 views

call graphs for solidity smart contracts

Do we have some open source tools where we can get call graphs for solidity smart contracts execution ? For ex: Suppose Function A in contract C calls some other function B so the graph should contain ...
0
votes
1answer
55 views

error deploying token to ropsten using remix

I am trying to deploy my token on Ropsten Network using REMIX IDE, but keep getting this error "contract may be abstract, not implement an abstract parent's methods completely or not invoke an ...
0
votes
1answer
46 views

Can't call “addLiquidityETH” Uniswap function from my contract

I'm a newbie, have been learning Solidity for 6 months now. I have been trying to fix this problem for couple of months but still got no hope. I'm trying to learn how to add liquidity to Uniswap by ...
0
votes
2answers
423 views

Stuck at emitting an event in Solidity

I am stuck at Step-6 of Bitdegree's Solidity tutorial. Question is to Emit an event ScoreChanged with two arguments: int amount (equal to the value that was sent) and bool direction (true for up ...
0
votes
0answers
14 views

Transfer token failed due to Gas estimation failed

Have issue transfer token, hope to get support from this. my contract https://rinkeby.etherscan.io/address/0x6D96673922d54108e8eFaFDe191Dc473dCeE709B pragma solidity ^0.5.0; import "github.com/...
0
votes
0answers
28 views

Is an ERC721 Burn event to send ERC20 tokens to that owner possible?

Trying to burn a minted ERC721 token and have the contract transfer to that owner a number of ERC20 tokens deposited beforehand to the ERC721 contract address. However I get a Remix JavaScript Vm ...
0
votes
1answer
14 views

Passing Object to smart contract's payable function

I'm developing a contract where I should be able to pay multiple user's addresses. I'm using TRON blockchain. I can use the TRONIDE developer API to send funds. But they recently shutdown their API ...
2
votes
1answer
149 views

Token Swap From Ethereum Host Network To Different Blockchain

What is a good way to swap tokens from the Ethereum host network to a different network (i.e. the Tron blockchain)? Would the best way to do this be to have a smart contract where ERC20 token holders ...
0
votes
1answer
23 views

Smart Contracts for the Blind Auctions

In blind auctions from solidity documentation what value should I insert under the bid function?Even I inserted string value,integer value under the bid function but it is showing the error as invalid ...
1
vote
1answer
222 views

Can't call function from contract using web3.js due to gas issue

I'm building a smart contract and dapp using ganache and web3.js. In my smart contract I have a function (named "add_pilot") which gets 4 parameters and add them to a mapping. It looks like this: ...
0
votes
0answers
20 views

Solidity contract: How to deal with return parameters in solidity

i am having an issue with an function I would like to call. Following case: The function looks like this: Params Type token0 IERC20 token1 IERC20 amount uint256 parts uint256 flags uint256 and ...
0
votes
0answers
9 views

“Revert: VM Exception while processing transaction” while trying to swap with 1Inch

since a while I am trying to program a swap contract for 1Inch. The problem is that I always get a Revert message when trying to call the function. I made sure that the contract has enough funds from ...
0
votes
1answer
587 views

Time Specified calls in Solidity using Oraclize

I have started learning coding in Solidity and I have written the below contract using the official Oraclize guidelines. My aim is to: Make the update() function be called on its own on the ...
0
votes
3answers
900 views

How can I Airdrop tokens to multiple address

I want to distribute tokens to a few thousand addresses at once. I want to know, how can I do this? My token contract is already deployed so I want to make a new contract in solidity that can interact ...
0
votes
1answer
12 views

Solidity compiler and Deploy & run transactions buttons are missing in Remix

Solidity compiler and Deploy & run transactions buttons are missing in Remix. I tried many times to refresh with no result.
1
vote
2answers
51 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[] ...
1
vote
1answer
246 views

How to decode InputValue of ethereum using java web3j

**I'm trying to decode the inputValue of an transaction using web3j without using any contract abi and wrapper class,Im loading the contract using its contract address ,is there any way/inbuilt ...
1
vote
1answer
289 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(...
0
votes
0answers
11 views

View in a function makes the other not working

Sorry, new here. I look up everywhere but couldn't find an answer. Got these 2 simple functions. Can anyone explain why if i add "view " in the setUser function (first one) the other ...
0
votes
0answers
3k views

Example for type bytes32 in Solidity

I have a function to set nickname: function setNickname(bytes32 _nickname) public payable { lords[msg.sender].lordAddr = msg.sender; lords[msg.sender].nickname = _nickname; emit ...
0
votes
0answers
28 views

Swaping ETH to DAI on Uniswap

I don't get why when trying to deploy my contract it says that gas estimation errored. Forked Mainnet with ganache-cli -f <INFURA_ID> Trying to deploy and execute following code: pragma solidity ...
0
votes
0answers
11 views

Token not visible under “Tokens” on Etherscan

I have deployed an erc20 token contract to rinkeby, ropsten using truffle. Each time the contract is deployed properly. However, the token details are not visible under 'tokens' in etherscan. Please ...
1
vote
1answer
632 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 ...
2
votes
2answers
419 views

Exceptions when compiling a contract using Solidity version 0.6.0 on Remix

I've been trying to compile contracts using the current newest version of Solidity on Remix which is 0.6.0. However when I compile the following code //pragma solidity ^0.6.0; pragma solidity ^0.5.15;...
0
votes
2answers
213 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
2answers
52 views

Tokens on a Contract

Want to get tokens amount sent to my contract address on chain, but don't know address of token. Can I get through any function ? Any possible way to so ?
0
votes
2answers
442 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
371 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
0answers
16 views

Fee for creating new ERC20 token is too high [closed]

I am creating a basic ERC20 token and experienceing very high fee when deploying on mainnet. Wonder when transaction fee is only $8, my deployment wants around .05 ETH Here is the alert. You are ...
0
votes
0answers
6 views

Determining value of variable: How to check the value of Log in the new version of Remix IDE

I am getting problem in understanding the working of the latest version of Remix IDE. I want to see the value of variable (i.e. Val). I am trying to run the following code: pragma solidity ^0.5.1; ...
1
vote
1answer
27 views

when msg.sender is the owner?

how do I know if the msg.sender is the owner (the person that deployed) of the contract or a random address that interacted with the contract? in this case for example: address payable owner = ...
0
votes
0answers
20 views

when i run the below code ,Getfrom function asks for byte32 transfer_id ,which byte32 hash should i give to display output? [closed]

pragma solidity ^0.7.0; contract peertopeer { enum State { None, Initiated, Confirmed } enum TransactionType { Unknown, Deposit, Withdrawal } struct Transfer { address buyer; address seller; ...
0
votes
0answers
12 views

Remix (or any other tool): Solidity program to EVM opcode

I am interested in obtaining sequence of opcodes for a Solidity program: One example is given in the following program obtained from Link of paper I have attached the image also I need a link to a ...
0
votes
1answer
465 views

Store data on ethereum blockchain from a text file

I have a simple smart contract running over a local Ethereum node. It has two functions: one for sending data and another for retrieving it back. I have a text file and want to send data from it to ...
0
votes
2answers
103 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
2answers
310 views

vm exception while processing transaction: invalid opcode error

I've been running this code on remix ide on injected web3 with my ganache server in on state, then also i'm getting this error of invalid opcode. The code runs perfectly in rinkeby test network. ...
0
votes
0answers
33 views

What's wrong with my buyToken function?

Here is my solidity interface IERC20 { function decimals() external view returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external ...
3
votes
1answer
695 views

How to connect to testrpc from another machine local network?

I have a testrpc running on a machine but I want to connect the Remix IDE to it which is on another machine. I can connect to the testrpc with Remix IDE if both are on the same machine. Tried with ...
0
votes
1answer
16 views

when i pass values in request transfer and call sent simple event function ,get functions are not showing any changes

pragma solidity ^0.7.0; contract peertopeer { enum State { None, Initiated, Confirmed } enum TransactionType { Unknown, Deposit, Withdrawal } uint toyprice; struct ...
1
vote
2answers
1k 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
1answer
4k views

gas required exceeds allowance or always failing transaction

I really need help with this error. I'm testing the contract by sending ETH to Crowdsale contract .(Ropsten, My ether wallet, Remix). Full code is here: https://ropsten.etherscan.io/address/...
1
vote
0answers
15 views

Debugging contracts on a mainnet fork with Remix

I'm developing a contract that relies on some states of other contracts currently deployed on mainnet. I'm after a way to test and debug my contract without having to deploy to mainnet first. I'm ...
0
votes
1answer
13 views

how to resolve return argument implicitly convertible to expected type address

function getFrom(bytes32 transferId)public returns (address ) { Transfer memory transfer = transfers[transferId]; if (msg.sender != transfer.to && msg.sender != transfer.from) ...
0
votes
1answer
81 views

How to view or transfer initial ethereum smart contract balance?

I created a new smart contract token with initial supply and deployed it via MetaMask. Then I added this token into MetaMask but token balance is Zero. Now, My question is when we create a new ...
0
votes
1answer
50 views

Sending the bool to ```function() payable``` in another contract

I am trying to create a pair of contracts, let's say C1 and C2. I want to add an if...else in payable function function() public payable{} of C2, which works on the bool value returned by contract C1, ...
0
votes
1answer
79 views

Solidity Events

I'm using Solidity events to interact with my html page, once a change is done in the contract or page the watch function from html reflects back to the contract. My question here is, while checking ...
0
votes
2answers
29 views

How to I initialise an array inside the contructor in solidity?

I'm using the remix IDE.I want to define the size of the array at the time constructor is called. Someone please help. This is what I tried : pragma solidity >=0.7.0 <0.8.0; contract Vote { ...
0
votes
1answer
18 views

how to pass address(0x0) to remix?

I want my users call a function and send some deposit to contract. I want them to chose whether they want to send ETH or ERC20 tokens. I have my code and I see no flaw in it. but how can I pass ...
2
votes
1answer
3k views

How to fix “invalid argument 0: json: cannot unmarshal hex number with leading zero digits into Go struct field CallArgs.value of type *hexutil.Big”?

Using Remix and metamask, I have deployed a contract on the rinkeby network that contains a function that, when called will send unsold tokens to a specific address. The code for it is like this ...
0
votes
2answers
51 views

Automating user data storage on a blockchain

I have a smart contract that contains a function to store data onto the blockchain. The function stores two integer variables to the blockchain. Now, I can manually store the values from the remix-ide ...

1
2 3 4 5
37