Questions tagged [remix]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
21 views

How to calculate fee when dealing with different decimals token?

I'm kinda struggling here to find a solution. I have a code where user can deposit token like USDC, DAI etc... For example USDC had 6 decimals and DAI has 18 decimals. How can I have a generic fee ...
0xAurora's user avatar
0 votes
0 answers
7 views

Tuple as argument to method in Ethereum Remix

I've created this contract which allows me to perform a split payment of native tokens (ETH) or ERC20. Meaning I can send funds to multiple beneficiaries using one transaction. Once I deploy my ...
Christian Papathanasiou's user avatar
0 votes
0 answers
12 views

Transfer Value isn't showing up in the contract value

So I'm totally new to ethereum. I'm asking you for help, maybe I don't understand the mechanics of this correctly. I set up a contract und transferred a little eth to it. But the transfer value never ...
trissdissi's user avatar
0 votes
0 answers
25 views

Recover ETH in Smart Contract [duplicate]

I'm reaching out to you because I think I've been scammed. I watched a video (https://www.youtube.com/watch?v=vv5l9VIBF1o) on YouTube that claimed to show how to set up a bot to earn ETH. So, I ...
Robin Borne's user avatar
0 votes
0 answers
10 views

Is Remix Hardhat documentation outdated?

In Chrome on Mac (the problem does not happen on Firefox), I'm trying to fully integrate a Hardhat project in a Remix IDE project, in order to compile the project in the same way, with both Remix's &...
Alexander Herranz's user avatar
0 votes
1 answer
24 views

Error when attempting to send SepoliaETH between two accounts in remix via smart contract with specific conditions: Cause of error -->undefined gas

I would like to use my smart contract to map a payment transaction from SepoliaETH from one Metamask account to another Metamask account. The conditions of a transaction limit and a recall function of ...
Dan Schönitz's user avatar
0 votes
1 answer
20 views

Please Help! It seems my tokens are stuck in the contract

here is the etherscan link https://sepolia.etherscan.io/token/0xdf55d43636657aef7a071bf8c3150792e64b1f3f?a=0xdf55d43636657aef7a071bf8c3150792e . Whenever I import the token to my wallet it shows the ...
Arnav's user avatar
  • 1
0 votes
0 answers
17 views

Remix Gas Limit, Transaction Cost, Execution Cost calculation

As can be seen in the screenshot, I am trying to deploy an entirely empty smart contract locally. The gas limit is set to 3, so logically, this should revert the transaction, right? However, it ...
Mark's user avatar
  • 13
0 votes
1 answer
29 views

contract keeps reverting but gets depoyed when i don't send a value and does not deploy when i send a value

Here is a screenshot of remix and my smart contract also the gas limit and amount of ether I am sending in the value field, but it still reverts only deployes when i don't send a value. And ever after ...
saksham khandelwal's user avatar
1 vote
0 answers
13 views

Type Error: contract.XXX is not a function

I am working on a smart contract that allows you to create Crypto Estates so that other addresses can inherit your crypto assets upon death or lost keys. I have the following smart contract function: ...
Jack Antico's user avatar
0 votes
0 answers
14 views

Is it possible for a view function to revert (in a loop?)

If I have a view function and it runs a loop to get a large set of data, is it possible to revert and be out of gas, or no matter how big the loop is will it still call it? This function will not be ...
Henry Gagnier's user avatar
0 votes
0 answers
40 views

PLSSSS HELPPPPPP [closed]

Please help, I'm testing in Goerli to find out solidity. However, such a difference emerges I copied a contract and there is no settings section in it But i have please help for it also it has MIT ...
Forabi's user avatar
  • 1
0 votes
0 answers
31 views

Withdrawal safety from scam? [duplicate]

Thank you for taking your time to explain & help Basically i'v run a bot (from scam...) on scammed remix environnement.. I'v several error when trying to withdrawal, one of them was that there was ...
Fabien's user avatar
  • 1
0 votes
0 answers
20 views

Unable to push files to Github

I can't push my solidity project to github. I specify that I want to push it from remix to Github. I get a 400 bad request error when I push it. What I did to resolve the error: I activated DGIT, I ...
Devop86's user avatar
1 vote
0 answers
32 views

Proxy Smart Contracts

I am working on a KYC smart contract and I want to provide the upgradable feature so I can add more functions or add more fields to the struct in the future. I have learned about proxies and the way I ...
mno3at l منو3ات's user avatar
0 votes
0 answers
50 views

Error with Withdrawing on remix-ethereum-compiler.io into Metamask Account [duplicate]

I was using the https://remix-ethereum-compiler.io but I cannot withdraw my ethereum that was transfer with metamask. It is possible to recover via withdraw? Or any available app to do it? Thanks
MhiKea's user avatar
  • 1
0 votes
1 answer
21 views

I am getting error while importing files on Remix IDE from GitHub

Error: not found https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol. I am getting this error while importing the files from OpenZepplin GitHub ...
Jai Prakash Valecha's user avatar
0 votes
0 answers
8 views

UniswapV2 Router2 Interface

I want to fetch getAmountsOut from UniswapV2 Router02 with // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IUniswapV2Router { function getAmountsOut( uint256 amountIn,...
Harsh Pathak's user avatar
0 votes
1 answer
73 views

No arguments passed to the base constructor. Specify the arguments or mark contract as abstract

I'm importing ownable contract from Openzepplin . The contract look like this : // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Ownable} from "@openzeppelin/contracts/access/...
MD AZAD's user avatar
  • 35
0 votes
1 answer
30 views

Cannot verify signature

I have been trying to do it but it always return me false, tried a lot of ways but I don't know. Here is the smart contract function _verify( bytes32 hashedMessage, bytes memory ...
AndRockSYS's user avatar
0 votes
0 answers
9 views

Etherscan does not recognize Remix Flatten contract? Don't know why?

I just tried to verify my token contract in Etherscan with a flattened version of the contract, generated from the Remix feature. It is a standard openzeppelin ERC20 contract and got the following ...
Patupai's user avatar
0 votes
0 answers
31 views

Presale contract - Cant send tokens to the contract

I have created a token and a presale contract on remix. User should be able to send BNB to the presale contract and receive the token in their wallet, but when i try to send funds to PRESALE contract ...
Jim Mike's user avatar
0 votes
0 answers
8 views

inspect local vars in fork?

Trying to find a way to inspect local variables during method call when having failed tx. Is there a way to example fork mainnet with hardhat and then to have insight on used local variables when ...
Josip's user avatar
  • 53
0 votes
1 answer
14 views

Why does adding a new external function increase gas for calls to all other functions?

I have added a new external function to my Solidity smart contract. When checking the gas usage for calls to other already existing external functions, I see the gas usage has increased slightly. Does ...
UpsideDown's user avatar
0 votes
0 answers
36 views

My contract is stuck not working on io

I have .75 eth stuck in a contract when I hit withdraw from my solidity bot it says I don't have enough gas to pay...so I've put more eth in the meta mask wallet to cover it...but it still says the ...
DeStache DeStach3's user avatar
0 votes
1 answer
41 views

How to connect from localhost webapp (ethers) to remix VM?

With Remix IDE, I can deploy Smart Contracts and interact with them, with Remix VM, without deploying on testnets. When I want to interact with Smart Contracts developed on Remix IDE, from a webapp (e....
Alexander Herranz's user avatar
0 votes
1 answer
26 views

ethers sendTransaction times out

I am using Remix IDE with the Remix VM (Shanghai) environment. In a Javascript unit test, I would like to send Ether from the main account to another account. Here is a minimal reproducible example: /*...
Max Poofing's user avatar
0 votes
1 answer
48 views

etherscan showing 0 balance, transaction showing as success, but balance in my contract as 0

Not sure why etherscan.io showing as 0 balance. My Transaction hash# "0x2653135e31407726a25dd8d304878578cdfcc7d69a2b319d1aca4a37ed66956a" is showing as susccess with 0.47 eth. but when i ...
arewe's user avatar
  • 1
0 votes
1 answer
16 views

Ethernaut Alien Codex Gas Estimation Failed

When i call attack() or exploit() function the remix shows Gas Estimation Failed. The code is copied from existing solution available on internet. so code is correct, can someone please help me why I ...
Shubham's user avatar
  • 25
0 votes
1 answer
27 views

created a contract address using REMIX sent ETH but script didnt work

I was following this direction on this link https://umbot.substack.com/p/easy-to-use-arbitrage-mev-bot-for Problem is I didn't realize when I was trying to fund this address I used the base network on ...
meny's user avatar
  • 1
0 votes
1 answer
51 views

Loose ETH making a smartcontract on Remix IDE [duplicate]

First think first- I'm a noob on blockchain/smartcontracts etc... but I really apreciate some help I was copying some youtube videos to make a smart contract on etherum staking with help of AI and win ...
Ruben Godinho's user avatar
0 votes
0 answers
30 views

Making meme coin on polygon network. Swap failure for no apparent reason

I'm working on developing a meme coin and I'm going through the testing phase to make sure everything works as intended. I am able to deploy the token and provide single sided liquidity to the pool ...
needhelpalways's user avatar
0 votes
0 answers
104 views

Setting initial price of token on Uniswap V3 single sided liquidity polygon token

I've been trying to set the initial price of my token for the past two days and I'm still confused. Please go easy on me as this is my first time messing with solidity and smart contracts. I have some ...
needhelpalways's user avatar
0 votes
0 answers
8 views

Is it possible to display opcode address in hex in remix debugger?

for any who is using the remix debugger, wonder how do you make the addresses appear in hex? Also are there any better debugger outta there for evm (local or online both works.) Thanks!
Justin Zhang's user avatar
1 vote
0 answers
10 views

Why using the console can solve problem but in remix is can not?

I have solved Preservation problem in ethernaut. I do the same thing when using remix vs ethernaut's console but remix can not. In remix I deploy my contract // SPDX-License-Identifier: MIT pragma ...
quocky16's user avatar
1 vote
1 answer
25 views

Remix plugin for VS Code reads 404

On the official Remix website Remix - Ethereum IDE & community the link to Ethereum Remix VS Code Extension reads 404. How could one find the official extension?
arturasmckwcz's user avatar
0 votes
1 answer
52 views

Unable to compile

I am unable to compile any solidity program on remix ide. The compiler just keeps on buffering. Also the compiler version is disabled. I am unable to change it. How to solve this issue? edit: I know ...
SanikaM's user avatar
0 votes
0 answers
10 views

Error: The called function should be payable if you send value and the value you send should be less than your current balance for view function

I am doing this is Remix This is my solidity contract. I just have 3 interfaces which are being used to call methods from 3 different contracts. The ITaco and IDoodle methods work fine and call ...
Risavdeb Patra's user avatar
0 votes
0 answers
25 views

The receiving account ether's does not increase whilst the sender ether's decrease

I got that function that sends contributions to the smart contract as i thought everything works perfectly when the sender uses it to send contributions his account balance decreases and that line is ...
JOEGREEN's user avatar
0 votes
0 answers
10 views

Problems with Gas Consumption When Deploying a Smart Contract with a Function for Uniswap Liquidity

I am encountering an issue when deploying my smart contract on the network. The contract deploys successfully without the inclusion of a function that handles a 2% liquidity tax, which is supposed to ...
john war's user avatar
0 votes
0 answers
200 views

A little help with the Uniswap V3 flash loan arbitrage code

I'm trying to use flash loans on Uniswap V3 to trade across different pools (two of these four: 0.01%, 0.05%, 0.30%, 1.00%) I've tried running codes from multiple tutorials: https://solidity-by-...
Joseph Capozza's user avatar
0 votes
1 answer
23 views

Calling Uniswap Multihop Function returns Error

Deployed on Polygon Mumbai. Code compiles fine on REMIX and is meant to perform multihop swaps on Polygon Mumbai, but it returns error after function is called. Deployed Contract always funded with ...
Samuel Aniss's user avatar
0 votes
0 answers
15 views

Brownie Request for Random number (Mock VRF) reverts

Using chainlink tutorial and concept for testing a random request locally, Request Randomness fails to execute in brownie for VRFCoordinatorV2Mock, however, I tested the same code in remix IDE and it ...
Obanla Andrew's user avatar
0 votes
0 answers
16 views

How Remix IDE compiles smart contract code to ABI and bytecode?

I am building a DApp where user uploads his smart contract code file and his smart contract gets deployed using his private key ( After he connects his metamask account to the DApp ) . How RemixIDE is ...
Gaurav Pant's user avatar
2 votes
1 answer
41 views

Assembly 'create2' and 'new' with salt not determining the same address

Since solidity 0.8.0, we can now specify the salt for contract creation using new keyword Using 'new' bytes32 _salt = bytes32("0x4"); address addr = address(new DummyContract{salt: _salt}());...
Xirexor's user avatar
  • 137
0 votes
1 answer
30 views

How can I fetch the current dollar price of BNB in a Solidity smart contract?

How can I fetch the current dollar price of BNB in a Solidity smart contract? Are there any recommended APIs or secure, decentralized methodologies for this?Is there a way to fetch the dollar price ...
Nishant Patil's user avatar
0 votes
1 answer
19 views

How do you deal with relative imports in a contract you depend on?

Goal I am attempting to create a smart contract that uses contracts from the iden3 library. I am using the Remix IDE. Problem My issue is that the contract I need (IdentityBase.sol) has several ...
Code on the Rocks's user avatar
0 votes
1 answer
22 views

Trying to issue ERC 3475 tokens

I'm trying to issue ERC 3475 tokens from a relatively simple contract using Remix. The contract compiles and deploys when gas is optimized, but when I try to issue the tokens I get an error of "...
Xavier83's user avatar
0 votes
0 answers
29 views

Kill a smart contract where my funds are currently stuck inside

I am the owner of the contract however I didnt write it but have some funds stuck inside, when i try to withdraw or run the contract the remix IDE tells me that "Gas estimation errored with the ...
Envestor's user avatar
0 votes
1 answer
44 views

Different bytecodes when verifying contract on Etherscan Goerli for code from OpenZeppelin Wizard

I went to https://wizard.openzeppelin.com to generate an ERC20 contract and then pasted the contract on Remix and deployed on Goerli. Then, I flattened the same code and tried to verify it on Goerli ...
ratib90486's user avatar

1
2 3 4 5
66