Skip to main content

Questions tagged [remix]

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

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

Uniswap v3 IQuoter / IQuoterV2 return nothing

I'm trying to get Uniswap v3 IQuoter.quoteExactInputSingle() or IQuoterV2.quoteExactInputSingle()in Arbitrum / Base networks in my solidity contract. In both cases Remix show me that decoded output is ...
Rodion Krat's user avatar
0 votes
1 answer
15 views

I would like to know if with this code after deploy on REMIX IDE,it is possible swap my token in bnb,usdt,btc,eth and sol on Uniswap and Pancakeswap

// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable....
Massimo Fornara's user avatar
0 votes
0 answers
11 views

Wait time at "creation of DexInterface pending" process

I've deployed a smart contract via Remix with MetaMask as the injected provider. I'm getting the message "creation of DexInterface pending" but have no idea how long I should expect to wait ...
Jake Boswell's user avatar
0 votes
1 answer
27 views

why is my loop not working in below solidity code

What's happening here in the code and why is my loop not working? And one more thing, should I remove all the warnings from my code before deploying? function sub(uint n, uint a) external pure returns(...
paaras bhardwaj's user avatar
1 vote
1 answer
18 views

Help Needed: Uniswap Not Finding My Recently Deployed Smart Contract

Help Needed: Uniswap Not Finding My Recently Deployed Smart Contract Hello everyone, I’m facing some issues with Uniswap and could really use your expertise. I recently deployed a smart contract for ...
Wail Haddad's user avatar
0 votes
1 answer
28 views

bundle transaction in bsc with contract address

i want to build bsc bundle like this contract address here is example https://bscscan.com/tx/0x934ad8417862a1e1e81a5b7ec4558f89877f06c33d3b2612293272eba437c869 https://bscscan.com/address/...
user3186594's user avatar
0 votes
0 answers
9 views

I need the solution for Spurious Dragon in constructor arguments in Solidity [duplicate]

I wrote 5 contracts modulating the whole operation of bonds of fixed income. I created #1- the storage of data, #2- the pool of investment with USDC, #3- the contract to issue, redeem and amortization,...
DoctorWeb3's user avatar
0 votes
2 answers
175 views

eth balance not showing in etherscan [duplicate]

Somehow, I got into this YouTube video, naturally believed it, and followed the directions. https://www.youtube.com/watch?v=dK6U9P9pt6A&ab_channel=JazzBraze After deploying this bot, I confirmed a ...
Pavel's user avatar
  • 1
0 votes
1 answer
8 views

'DeclarationError: Identifier not found or not unique' when importing contracts from different files

If I write the three contracts that drive me to this error in the same file, everything works fine. It happens both in Remix and VSC. It looks like this: pragma solidity ^0.8.0; contract A{ uint ...
Sergio López's user avatar
0 votes
0 answers
16 views

How to implement a reentrancy attack in the English Auction in Solidity?

I implemented a solidity code for an English Auction where different accounts can bid during the specific period of time to win the nft. // SPDX-License-Identifier: MIT pragma solidity ^0.8.25; ...
Daniil Kuntsevych's user avatar
0 votes
2 answers
68 views

how to verify the minimum gas fee for deploying a contract on the mainnet?

how to verify the minimum gas fee for deploying a contract on the mainnet? my contract creation failed in Remix IDE, I choosed estimated gas fee and the process were not successfully finished, is it ...
Morty's user avatar
  • 3
0 votes
1 answer
20 views

Issue with msg.sender. Calling contract B from contract A

There is currently a published contract (contract A), I must use another(contract B) to call withdraw() from contract A. But the function withdraw() already uses msg.sender as a security check. In ...
Olivia Nicole's user avatar
0 votes
2 answers
34 views

Can I Recover a Smart Contract Written On Remix

I wrote a smart contract earlier today using Remix. I was away for a few hours, and when I came back my computer was out of battery. I've configured my browser to never save cookies, so even when I go ...
Spaghetti's user avatar
0 votes
1 answer
27 views

Why is my _transfer function transfering all my tokens to the deadWallet?

I wrote this simple contract that is designed to burn (send to deadAddress) all transfers that in which the sender of the transaction is not the LP address. I provide liqudity on uniswap and then set ...
Stavros Cotsoradis's user avatar
0 votes
1 answer
33 views

Error while calling "requestRandomWords" function while implementing Chainlink VRF mock contract on local Remix environment

I've followed this tutorial, but when I tried to call function RandomNumberConsumerV2.requestRandomWords, I got the following error: [vm]from: 0x5B3...eddC4to: RandomNumberConsumerV2....
rebwar's user avatar
  • 3
0 votes
2 answers
30 views

I can't deploy my coin on Remix IDE

I'm trying to write my first smart contract but when I try to deploy it I get this: This contract may be abstract, it may not implement an abstract parent's methods completely or it may not invoke an ...
Erdem Arif Akalin's user avatar
0 votes
1 answer
56 views

ERC721 NFT is empty in Avalanche Fuji Testnet

I am using OpenZeppelin to generate this simple contract and Remix IDE to deploy it and interact with it using Core Wallet as injected provider: // SPDX-License-Identifier: MIT // Compatible with ...
Jose Miguel Vega Lopez's user avatar
0 votes
0 answers
10 views

not able to view File Contents in Remix IDE

REMIX IDE. When I click on a File in File Explorer contents are not visible on the right hand side. attached screencapture.( infact file is not highlighted also.) thanks Uday
Udayarajan gauthaman's user avatar
0 votes
0 answers
20 views

Setting up of IPFS node to remix settings

I am not able to publish on IPFS. Getting this error - Failed to publish metadata file and sources to ipfs, please check the ipfs gateways is available. Error: HTTPError: project id required Also, it ...
Rayana Shainee's user avatar
0 votes
2 answers
60 views

"message": "Error: Transaction reverted: function returned an unexpected amount of data", ""message": "Error: Transaction reverted: funct

function createTransaction( uint256 _merchantId, uint256 _tokenAmount, address _tokenAddress ) public onlyActiveMerchants(_merchantId) { IERC20 token = IERC20(...
Anwar's user avatar
  • 51
0 votes
1 answer
26 views

Function's reverted when trying to be a middleware to receive exploited fund, return to exploited protocol and send bounty to exploiter

I'm creating a smart contract where exploiter send exploited funds to exploited protocol and automatically get a portion back as the bounty. Here's the smart contract: // SPDX-License-Identifier: SEE ...
dtnwen's user avatar
  • 33
0 votes
1 answer
35 views

Solidity Debug: Require statement reverts with no error when met, but prints error when not met

Apologies if the title is a little confusing. I'm new to programming in Solidity, and I think there's just some fundamental misunderstanding I'm having on this code, and I'm unable to fix it until I ...
Opsec Optimum's user avatar
1 vote
2 answers
35 views

Array of Structs problem and how to test in Remix - Copying of type struct ArrayTest.swapDataStruct memory[] memory to storage not yet supported

Getting this error: Copying of type struct ArrayTest.swapDataStruct memory[] memory to storage not yet supported when I try to assign a parameter to the function which is an array of structs to an ...
Ian Forsyth 's user avatar
1 vote
1 answer
26 views

Meaning of msg.sender in constructor

What is the meaning of a msg.sender in a constructor? Is it strictly the owner of a contract or any EOA account calling the contract?
Jayman's user avatar
  • 13
0 votes
2 answers
59 views

Deploy transact not payable with Remix

I can't click Deploy, even though my Metamask is connected: https://imgur.com/a/K8kEyRO My Metamask currently has 0.2497 SepoliaETh in it.
matta's user avatar
  • 17
0 votes
0 answers
12 views

Start Native address took my Ethereum instead of my Remix bot [duplicate]

After watching a youtube video on a certain ethereum bot I followed the instructions and somehow found that the money was sent to some start native address and wasn't being used by my bot. I was ...
Graham Losken's user avatar
1 vote
1 answer
25 views

How to manipulate the first few digits of a Smart Contract?

I saw some devs that can pick the few digits of their choice for their smart contract, like 0xd0d0, and I saw that some even do more than 4 digits (like 5-6 digits after 0x). Does anyone know how to ...
Andrew Manggala's user avatar
1 vote
1 answer
20 views

Solidity Contract Error: "call to SimpleStorage.people errored: invalid opcode"

I'm encountering an issue with my Solidity contract and could use some help debugging it. I have a simple contract named SimpleStorage that includes a struct People and an array people to store ...
Kuldeep Sonara's user avatar
0 votes
1 answer
40 views

selfdestruct in solidity is reinitializing the contract

Hello I am trying to solve ethernaut challenge MotorBike ,code below // SPDX-License-Identifier: MIT pragma solidity <0.7.0; import "openzeppelin-contracts-06/utils/Address.sol"; import ...
Tanaka wa Kun's user avatar
0 votes
0 answers
10 views

How to withdraw from Remix Ethereum IDE when after start narrative the Etherium was not transfered on ETH Balance? [duplicate]

Deployed contract on Remix Ethereum IDE, after starting narrative, following problem experienced ETH not reflected on balance. 0.5331354 ETH value transferred after taxation. When checked on Ether ...
Cyb Llanita's user avatar
0 votes
1 answer
19 views

Why is the function throwing an error when called from another contract but not when called independently?

I have 3 solidity contracts, main.sol, provider.sol and allowance.sol Now from main.sol, I am calling a function "Transact", which calls another function "Transact" in provider.sol ...
Shreyansh Tiwari's user avatar
1 vote
1 answer
23 views

Contract reverts at deploy when sending 2 ethers

This contract deploys fine when no value is added and get reverted when I try to send 2 ether on the remix VM.......which is exactly the opposite of what I expected or should be happening. I retraced ...
Bohn Bohn's user avatar
3 votes
1 answer
233 views

Issue with Accounts Not Displaying in Remix VM (Cancun and Shanghai) Environments

I'm encountering an issue with Remix VM where, after successful compilation, the accounts are not displaying in the "Deploy" section. This problem persists in both the Cancun and Shanghai ...
Piña's user avatar
  • 33
0 votes
2 answers
26 views

How multiplication and division works in solidity?

How is this calculated? According to solidity precedence, multiplication has precedence against division Amount= (15- 10) * 10 / 15 * (10_000 - 5_000) / 10_000; So Shouldn't it be 5 * 10 / 15 * ...
anonauditor's user avatar
0 votes
1 answer
19 views

How to determine whether code is running in a JS VM such as Remix, as opposed to ETH mainnet?

block.chainid always returns 1 for both Remix VM and ETH mainnet. There has to be some intrinsic variable that will always return a different value compared to the other environment. I'm aware I could ...
Ashraile's user avatar
  • 125
0 votes
1 answer
16 views

How to prevent division before multiplication precision loss?

In the else statement, where the Boolean is false, the amount has more than 18 decimals. In this example I used a 24 decimal amount, 123456789123456789123456. Now, it will return 123456789123456789. ...
anonauditor's user avatar
0 votes
1 answer
10 views

LearnEth sending Ether tutorial complete? Donating nothing

Today I got up to 10.3 Transactions - Sending Ether and have deployed the Charity contract of sendingEther_answer to the Sepolia testnet, but I don't understand how the amount of Eth I send through ...
ThrwWy's user avatar
  • 1
0 votes
1 answer
41 views

Can't remove the liquidity from uniswap

I deployed a contract on the blockchain that had no buy and sell function (mistake). This contract is verified by Etherscan, and I've added 0.8 ETH of liquidity that I can't withdraw because the ...
Pedro's user avatar
  • 1
0 votes
1 answer
24 views

I can't use the deploy button on remix

i wrote a test code on remix and it compiled successfully but the deploy option on remix is blurred out. why is that and how can I correct it
Lemboye Toheeb Ayomide's user avatar
1 vote
1 answer
21 views

LP contract doesn't approve

I created this contract to simulate a liquidity pool and I'm testing it with the Remix IDE. I can say it works fine, except for the function to swap tokens for ether, which is bothering me. The user ...
Integral's user avatar
  • 115
0 votes
1 answer
17 views

Adding Multiple Owners and Allowing Original Owner to Remove Other Owners

I am trying to use the existing 2_Owner.sol in Remix Ethereum and make a few modifications. Write up an addOwner() function that is public to everyone. This function takes one address as an argument ...
beginnerremix's user avatar
0 votes
1 answer
27 views

i am compiling this lottery contract but the picWinner and getPlayers are not working

// SPDX-License-Identifier: MIT pragma solidity >=0.7.0; contract lottery{ address public manager; address payable[] public players; constructor(){ manager = msg.sender; } ...
Muhammad Usman ALi's user avatar
0 votes
0 answers
31 views

Gas estimation failed - remix.ethereum.org

Why i cant deploy my contract ? it show me every time this. I am sure i do everything right. Before i try force sending but TX failed and i burn some eth... here is tx https://etherscan.io/tx/...
Lukáš Kubala's user avatar
0 votes
0 answers
13 views

Adding a custom devnet to remix

I am trying to deploy a smart contract to a new EVM Devnet with its dedicated ChainID. I've got the RPC endpoint, but when I try to add it as a custom External HTTP Provider in remix, I get an "...
GoLDs's user avatar
  • 1
0 votes
0 answers
18 views

Spillage biot in Remix [duplicate]

I had used https://tinyurl.com/bdeywjnc while creating remix slippage bot. Here is my contract created https://etherscan.io/address/0x001a3f8d6f808968bdd7bd33d8490af44d668907 But it has transferred to ...
user133710's user avatar
0 votes
0 answers
44 views

Why am I getting transaction out of gas error in remix ide for all my smart contract function?

This is my Smart Contract Code. I have tried increasing the gas limit in remix but to no avail the same error comes again // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "hardhat/...
Shreyas Keni's user avatar
1 vote
1 answer
43 views

payable(address).transfer(value) runs out of gas

I am playing the openzeppelin Ethernaut challenges. The king challenge, requires to become king and not let the other contract reclaim kingship: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0;...
Cesar Garcia's user avatar
1 vote
1 answer
20 views

Influencing/Setting tx.gasprice

I am currently trying to solve a security challenge. Thereby, as the last step in order to solve it, I have to make sure that the following require is true: modifier filter() { require(tx.gasprice ...
pekusbill's user avatar
0 votes
2 answers
25 views

Getting started with a project

I'm new to smart contract and eth development but I have a project I'm planning to start and wanted to get a guide on the tools and framework I should be using. I'm gonna be writing smart contracts in ...
Dhruv Pareek's user avatar
0 votes
1 answer
30 views

Visual Studio Code

Can I use visual studio code for the testing and debugging of my smart contact, remix doesn’t seem to work for me
user133433's user avatar

1
2 3 4 5
67