Questions tagged [remix]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

must be a lvalue? what's this mena, precisely?

i am wrinting a few contracts and i'm all good to go util i migrate and hit this bumb in the rode, it has tormented me for 3 days i can't seem to figure out the issue i am thinking it is camel case ...
0
votes
0answers
5 views

Load Contract From Address Remix

I deployed a smart contract and was working on it when my laptop decided to shut down, my saved smart contract was gone. I have my contract address and my contract source code. However I can't seem to ...
0
votes
1answer
11 views

Where can ı find full funticon BEB20 Solodity [closed]

I will like to write smart contract but some of full funticon Solidty file
0
votes
0answers
6 views

parsererror source file requires different compiler version (current compiler is how to fix this error

I am new to this and was able to successfully compile and deploy a token onto the BSC mainnet using the following code but now I am trying to make some adjustments and re deploy but now I am not even ...
0
votes
0answers
13 views

Bep20 OpenZeppelin Token Unable to Verify

I created one token on bep20 chain and I am starting to like it, but I am unable to verify. I am pretty new to that and I hope I haven't missed something that cannot be fixed. So the token is ...
1
vote
1answer
11 views

Simple Remix Fail

has anybody any idea why the following code cannot be compiled on REMIX with the VYPER COMPILER? @public @constant def hello() -> string[100]: return "hello world" Thanks!
0
votes
0answers
4 views

Remix: Gas estimation errored with the following message (see below). (…) execution reverted

I am trying to deploy a smart contract on remix written in VYPER. The code for the simple open auction comes from the vyper documentation website. Remix compiles the code perfectly fine. However, when ...
0
votes
1answer
12 views

Member “Address” not found or not visible after argument-dependent lookup in tuple(address,int16,int8,uint256,bool,int256,address)

I am new to programming and trying to access a struct located in another smart contract but am receiving the following error. "TypeError: Member "Address" not found or not visible ...
0
votes
0answers
19 views

I am trying to use chain link using remix

I'm getting this error /* Internal exception in StandardCompiler::compile: /root/project/libsolidity/interface/CompilerStack.cpp(93): Throw in function solidity::frontend::CompilerStack::CompilerStack(...
0
votes
1answer
16 views

I am trying to use chainlink using remix and i followed the chainlink docs

I am facing this issue,What to do now? My Code pragma solidity ^0.6.7; import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/interfaces/AggregatorV3Interface....
0
votes
1answer
26 views

Contract not properly deployed with Remix

Can someone help me deploy a token contract with Remix? I try to deploy this contract using remix and this is the result. The contract deployed does not appear to be my token contract. How can I ...
0
votes
0answers
92 views

Fail with error 'UniswapV2Router: EXPIRED'

I forked UniswapV2's factory and router and deployed them in Kovan using remix I also made sure that I am sending an ETH I also made sure that I approved the tokens But I am getting this error when ...
0
votes
0answers
58 views

Copying a smart contract and deploying to Test [closed]

I copied the Safemoon contract and deployed it to BSC Testnet for study purposes. However, it does not work as expected. I used REMIX for the IDE. The TokenName does not appear as it usually does when ...
0
votes
0answers
8 views

Reeusing later contract after deployment

I have deployed a erc20 generator contract on remix on a testnet network everything worked fine and I could play with the contract functions in the bottom of "Deploy and Run transaction" ...
0
votes
1answer
21 views

1INCH Version error

I got error importing and using 1INCH. The problem is in the versions. In IOneSplit.sol version is 0.5.0 (pragma solidity ^0.5.0). And IOneSplit imports IERC20 which is in 0.8.0 (pragma solidity ^0.8....
0
votes
1answer
14 views

Function and withdrawal does not recognize the address as payable

I have this withdrawal function but an error happens: TypeError: "send" and "transfer" are only available for objects of type "address payable", not "address". -...
0
votes
0answers
12 views

tokenFallback and transferAndCall and approveAndCall?

Excuse me, what data should I pass in _data bytes when I call tokenFallback and transferAndCall and approveAndCall? function transferAndCall(address _recipient, uint256 _amount, bytes _data) ...
0
votes
0answers
8 views

Sending Token when the contract receives some value

I'm trying to make sure that, when my contract receives any token, send mine to the wallet of the person who sent it to the contract. event Received(address, uint); receive() external payable { ...
0
votes
1answer
60 views

Constructor error on multiple pieces of code - Remix

I've been getting this error when I try and deploy a contract with a constructor on multiple pieces of code. I use the correct complier version too creation of MyContract errored: Error encoding ...
1
vote
0answers
20 views

Send token when receiving BNB

I am compiling the ERC20Basic contract on the Remix, so I receive the token code and I can send BNB for this contract. However, when I send BNB the function to send me the contract tokens that I ...
0
votes
2answers
38 views

Exception:Reverted when swap by smart contrat with uniswap

Here is my code pragma solidity ^0.8.2; import "https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/IUniswapV2Router02.sol"; contract Test_Swap{ address ...
0
votes
1answer
18 views

How can I use the payable function to transfer fixed ether in a transaction?

contract MyContract { address payable[] recipients; function sendEther(address payable recipient) external payable { recipient.transfer(1 ether); } } Error- transact to ...
0
votes
0answers
9 views

How to create custom web based wallet

Hello i want to create website wallet bsc and erc based tokens where person can withdraw and deposit tokens on his account wallet. How do i make it is there any complete guide?
0
votes
1answer
12 views

declaration error identifier not found or not unique

pragma solidity 0.7.4; contract MyToken { address public minter; mapping (address => uint) public balances; constructor(){ minter = msg.sender; } function ...
1
vote
0answers
14 views

Getting a Parser error for one of my contracts

I'm getting the error: "ParserError: Function, variable, struct or modifier declaration expected. --> CurrentERC721.sol:1393:1: | 1393 | contract ERC721Pausable is ERC721, Pausable { | ^^^^^^^...
0
votes
0answers
19 views

A smart contract that compiles and doesn't have errors, is not deployed and revert all the process

I have a central smart contract that inherits from other contracts and create two entities that are the entities of the contract that are going to sign it. This "central" contract is named &...
0
votes
0answers
6 views

Remix Deployment

I'm deploying an erc20 token on the ethereum mainnet and so far every time I attempt a deploy the console displays "Creation of DappToken pending..." and an etherscan link that leads to &...
0
votes
2answers
16 views

i am very confused on what's wrong on line 16. balances[msg.sender] = totalSupply;

pragma solidity ^0.8.2; contract Token { mapping(address => uint)public balances; mapping(address => mapping(address => uint))public allowance; int public totalSupply = 10000 * ...
0
votes
1answer
17 views

need help with erro code in smart contract

ParserError: Expected a state variable declaration. If you intended this as a fallback function or a function to handle plain ether transactions, use the "fallback" keyword or the "...
0
votes
0answers
37 views

Gas estimation failed on BSC Testnet

I've got the following error when I'm trying to deploy my token on BSC Testnet. Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want ...
0
votes
0answers
19 views

Any ideas on why I cant “Load contract from Address” in Remix?

I have compiled the code and the code is the same as the deployed contract Any tips would be appreciated, I deployed this contract just yesterday.
0
votes
0answers
7 views

How to recover the old sol files in firefox? [duplicate]

I open remix.ethereum.org today in firefox but didn't find the sol files I used to work with. Instead remix asks me to use/create workspace. I searched under C:/Users/MyUser/AppData/Local and didn't ...
0
votes
0answers
49 views

How To Copy And Paste Token Code

i want to copy and paste this code and use it for my token just want to change symbol and everything . https://bscscan.com/address/0xf38acb6cea8f6701b06ec759f6cbc3fe23f377d3#code i try to post code ...
0
votes
0answers
9 views

Problems with ERC20 token [duplicate]

i trying to deploy an token on remix and i got this error message: CompilerError: Stack too deep, try removing local variables. --> bestTokenEver.sol:1027:80: | 1027 | (uint256 rAmount, uint256 ...
0
votes
0answers
18 views

How to interact with a contract from another computer [closed]

I had deployed a contract (BSC), however the computer I deployed it on is no longer accessible to me. I have my wallet backed up and setup on the new computer, however I cant seem to interact with the ...
0
votes
1answer
19 views

How to use this code? [closed]

How to use this code as mine. I tryed its compile well but unable to deploy its have many contacts cant understand which one will be deploy. https://bscscan.com/address/...
0
votes
1answer
13 views

Identifier already declared

event transfer(address indexed from, address indexed to, uint value); event Approval (address indexed owner, address indexed spender, uint value); constructor(){ balances[msg....
0
votes
1answer
31 views

I want to deploy my IERC20 Contract and I need few questions

If the contract is using IERC20 can I deploy it on BSC? If yes, should I do something else or simply deploy it via Remix? When I want to deploy my contract I see those options here. What should I ...
0
votes
1answer
4k views

Cannot estimate gas error on Uniswap / Sushiswap

I'm trying to swap at Ropsten network some tokens for testing purposes, but I'm getting the following error: Cannot estimate gas. It's curious because when I transfer from one wallet to another ...
0
votes
1answer
32 views

Problem with deploying contract on BSC Test net

I'm new here. I want to deploy a contract on the BSC test net thru remix. The code is below. I'm running into a problem "This contract may be abstract, not implement an abstract parent's methods ...
0
votes
0answers
10 views

Need to iterate a uint 4 times? No problem. 5 times? Nope! Called function suddenly needs to be payable…?

I have a public uint variable denoting 'which round' it is and a function that advances rounds and does processing alongside the round advancement: uint public round; function ...
0
votes
1answer
11 views

DeclarationError: Identifier not found or not unique. --> MyContract.sol:9:27: | 9 | function get() public views returns(string) { | ^^^^^

i am new to solidity....i was following a tutorial but this error DeclarationError: Identifier not found or not unique. --> MyContract.sol:9:27: | 9 | function get() public views returns(string) { |...
0
votes
0answers
8 views

DeclarationError: Identifier not found or not unique. Two contracts in the same file

This is the Contract that I want to use a function of: contract Origin{ uint transfer_amount = 0.1 ether; address payable owner = xxx; function invest() external payable { owner....
0
votes
1answer
22 views

What is Solidity revert code “-32000” when interacting with contracts via Remix IDE?

I wonder if the error "VM Exception while processing transaction: revert", "code": -32000" thrown by the Remix IDE indicates the 0x32 Solidity panic exception happening when ...
1
vote
0answers
9 views

Solidity - String Template Literal

Is it possible to write a multi line string in the solidity language on the same fashion as JavaScript allows us to do so by levering back-ticks? I'd like to now an optimal way to save a long string ...
0
votes
1answer
13 views

Transaction reverts because of this line. Why?

Inside my contract Lipsum, I have a function doStuff(uint foo_) which has the following line: result = (a * (foo_ / 100) / b); result, a and b are all uint. If I call the function, it errors out in ...
1
vote
0answers
15 views

Problem connecting a deployed smart contract to JavaScript. Remix + JS + Infura + Ropsten (with Metamask)

I am a beginner in DApps and still learning most concepts. Recently, I wrote a smart contract in Remix IDE which I deployed in the ropsten test network using injected web3 and metamask. The functions ...
1
vote
1answer
30 views

Interacting with an already deployed smart contract in web3.py

My question is related to the question that is available in this post. However, the answer I'm looking for is not available in that post. Assume that the seller (owner) deploys the following contract. ...
1
vote
0answers
21 views

Why is there gas infinity here?

I'm starting with Solidity and Smart Contracts, and the static analysis in Remix is complaining about gas infinity for the function bet: contract Forecast { struct Bet { address ...
0
votes
1answer
33 views

Deploying ERC20 Contract gives error code -32000: Transaction Underpriced

I'm trying to create an ERC20 token in solidity and upon hitting "Deploy" it prompts me to enter a Gas Price. I'm entering 0 as I don't have any ETH in my metamask wallet and this is only ...

1
2 3 4 5
40