Questions tagged [remix]
Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.
3,336 questions
0
votes
0
answers
12
views
program into Remix to run a BOT added money to contract address but cannot withdraw? how do i get back out can see the funds in Etherscan please help! [duplicate]
Hi Stupidly run a program that was given from a You Tube guy in Remix, it runs a BOT and front runs to get profits, it was adding profits when checking on the contract in Etherscan. So was thinking it ...
0
votes
1
answer
17
views
Mint function is failing with Status: "Unfinalized (Safe)"everytime, i am trying to mint the contract
function mint() public {
uint256 newItemId = _nextTokenId;
require(newItemId < MAX_SUPPLY, "All tokens have already been minted");
_nextTokenId++; // Increment after minting
...
0
votes
0
answers
25
views
Ganache-UI connection with Remix IDE [duplicate]
I connected Ganache-UI with Remix and able to view all the accounts and balances, but upon deploying a basic contract, I get such message:
Gas estimation errored with the following message (see below)....
0
votes
0
answers
7
views
About Ethereum Trading
Will this platform be merged with the Ethereum trading platform I invested in before? So can I get my Ether coins back that I invested before?
0
votes
1
answer
22
views
How to read the content of the Smart Contract?
Suppose below is my Solidity code
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HelloWorld {
string public greeting = "HELLO WORLD";
}
Now when after I deploy it on the ...
0
votes
1
answer
31
views
Having trouble verifying this contract on base scan
This is a simple smart contract that utilizes the Openzeppelin ERC20 contract.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"...
0
votes
1
answer
25
views
Withdrawn smartcontract didn't transfer ETH to Metamask account
I've deployed a smartcontract on Remix and topped it up from MetaMask. When i
withdrawn the contract the amount wasn't transferred to my account. Are my ETH lost forever/ is there a possibility to ...
0
votes
0
answers
16
views
WHERE IS MY MONEY? [duplicate]
okay so i started mining for ether using ai on remix and i left it for a while and now my money is gone and it says no money is in my account on etherscan.io and none in remix, plus no money in ...
0
votes
0
answers
33
views
ERC20 Token `ERC20InsufficientAllowance` Error on `transferFrom` function
I have been trying to develop my own ERC20 token on Remix as a trial.
I use three accounts for the token.
0x5B38Da6a701c568545dCfcB03FcB875f56beddC4: contract owner
...
0
votes
0
answers
43
views
Remix IDE freezes when a contract call error occurs
When I try to call a contract function that returns an error, Remix IDE execution freezes (from https://remix.ethereum.org/). It doesn't matter what the error is, even with the banal incorrect Owner ...
0
votes
1
answer
28
views
I can't deploy my contract 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 ...
0
votes
0
answers
14
views
Start and withdrawl remix problem. High fee
I have a remix problem with a smart contract. When i press start start i get this error messageGas estimation errored with the following message (see below). The transaction execution will likely fail....
0
votes
0
answers
32
views
Failure in Compiling contract in Remix with ZK sync plugin
I have been trying to compile my contract in Remix with Zk Sync Plugin. The solidity version i applied was 0.8.24; I even tried switching between different solidity versions but the current zk sync ...
0
votes
0
answers
26
views
Recover Funds from Failed Contract
How can I recover my funds from a failed contract? The transaction ID is 0xdbdc42e7287c51dc49a4c0ba66dca106bcb2abe7e3337214a490fb82069bd300.
Thanks,
Dave
0
votes
1
answer
27
views
Smart Contract Authorization Failure, Unable to Find the Cause of the Error
Firstly, I want to clarify that I am not a Solidity developer. I created this contract entirely from research I did online. My prior knowledge of cryptocurrency was limited, similar to my ...
0
votes
0
answers
19
views
FLASHLOAN.https://remix.ethereum.org/ [duplicate]
i created a contract using remix.ethereum , all went well ,
i linked it to meta mask wallet ,
created a contract and deposited ETH , when i started the arbitrage i got a MSG debug error
after around ...
0
votes
1
answer
80
views
Cannot deploy contract as it runs out of gas using the Remix IDE
I am getting the following trying to deploy a contract deployed to Sepolia using the Remix IDE:
creation of XYZContract errored: Error occurred: contract creation
code storage out of gas. contract ...
0
votes
1
answer
13
views
deployment issue
Code
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.27;
contract FundMe{
uint256 public fundAmounts=3;
function fundMe() public payable{
fundAmounts=fundAmounts+2;
...
0
votes
1
answer
17
views
why is this red warning , cleared the cache , just opened the site no code but it compiles well when i add it , how to fix?
why is this red warning , cleared the cache , just opened the site no code but it compiles well when i add it , how to fix ?
1
vote
2
answers
83
views
Can't get my OpenZepplin based contract from Remix to verify and publish on etherscan.io
So, I followed a tutorial to make a Token, and the token works fine, but now I am having trouble getting the contract to verify on etherscan.
I think the problem is that the main contract includes ...
1
vote
1
answer
168
views
Remix IDE: My code compiles, but I still get red space in the first line, it says "Invalid EVM version requested". How to remove this warning?
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
contract SimpleStorage {
uint256 myFavoriteNumber;
struct Person {
uint256 favoriteNumber;
string name;
}
// ...
0
votes
1
answer
55
views
Scammers trap. Need help with funds withdrawal from a contract that was deployed by me
I’m looking for an advice. Probably I know an answer but maybe there is a chance to withdraw my funds from the contract I deployed. Here below are some facts about that.
Site: Remixide.fo (Now I know ...
0
votes
0
answers
18
views
Unable to withdraw funds from my contract on etherscan.io [duplicate]
I am Unable to withdraw funds from my contract on etherscan.io, using Remix-Ethereum IDE link:https://remixide.club/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.6.6+commit....
0
votes
1
answer
27
views
sometimes tx.gasprice fails in sepolia, why?
I have this simple test contract to try to understand why sometiemes when I call getGasPrice() transacion fails:
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
contract TesterGas {
...
1
vote
1
answer
27
views
Damn Vulnerable
I'm currently working on a smart contract challenge from Damn Vulnerable DeFi (or a similar CTF) and I'm trying to solve it without watching any walkthrough videos. I've been analyzing the contract ...
0
votes
1
answer
58
views
i need help seriously, i touch my private key on remix and it says this i don't know what to do help please
I need help seriously. I touch my key and it says this I don't know what to do help please:
- call to DexInterface.Key errored: execution reverted: arithmetic underflow or overflow
{
"...
0
votes
1
answer
24
views
I am writing this smart contract Remix but when I try transferFrom my CELO wallet show me an error
I am using the compiler version of 0.8.19 as it was the one that could run this code. The error I am getting from the wallet connected on the Alfajores Test net is: ALERT: Transaction Error. Exception ...
0
votes
0
answers
54
views
when using call function in web3.py im getting error
Error: Could not transact with/call contract function, is contract deployed correctly and chain synced?
import streamlit as st
from web3 import Web3
import hashlib
import json
# Connect to local ...
0
votes
0
answers
21
views
I was withdrawal from this smart contract. but now i can't. could anyone tell me what to do
I didn't know what means frontrunning but i need money in urgent so i tried this bot and i tried with some ethereum ( 0.07XX). I sent the eth to it and i tried to withdraw from it also.then i tried to ...
0
votes
1
answer
18
views
how to get the balance out of my smart contract when the file is rewritten
I rewrite and recomplied the code file of my old smart contract because it doesn't allow me to withdraw, saying gas estimated failed. So I tried to rewrite the code and deploy again using the same ...
0
votes
0
answers
49
views
not able to verify my smart contract on zkSync Era Testnet using Remix and MetaMask
I am trying to deploy my smart contract on L2 but the "verify contract" button is disabled and even after deploying my smart contract is not visible on sepolia.explorer.zksync.io, any idea ...
0
votes
0
answers
54
views
Help Needed: ETH Stuck in Smart Contract with Non-functional ETH Withdrawal
I have ETH stuck in a smart contract that I deployed. The contract can receive ETH, but its withdrawal function doesn't work with ETH, only with ERC20 tokens. This leaves the ETH inaccessible
Details ...
0
votes
0
answers
21
views
Revert error when using getConversionRate with PriceConverter.sol file
I am writing a fundMe test file where I run tests for my fundMe solidity contract. I am having a problem concerning calling a function called "getConversionRate" from a PriceConverter file, ...
0
votes
0
answers
16
views
Gas estimation failed with unknown To address
I'm getting gas estimation errors leading to my transactions not going through. Here is the error message:
Error: processing response error (body="{\"jsonrpc\":\"2.0\",\"...
0
votes
1
answer
54
views
Deploying an ERC20 Contract: Invalid Opcode Error
I'm trying to deploy an ERC20 contract, but I keep getting an invalid opcode error. Below is my contract and a screenshot from REMIX:
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/...
0
votes
1
answer
13
views
How can i make funds raised transferred to a wallet governed by voting?
For a ICO i search to know how programmatically transfer funds raised to a locked address where it is governed by vote.
No one can withdraw funds without the vote of community
I think DAOs do it but i ...
0
votes
0
answers
19
views
Hardhat returning incorrect call results in chai tests
I'm currently facing a problem with hardhat tests, where the result of a call to a contract in the test returns incorrect results. The following contract is an example of where this might occur:
// ...
0
votes
0
answers
14
views
Why is VSCode not fetching the details that are given to the contract after the deployment to the Remix IDE?
Why is VSCode not fetching the details that are given to the contract after the deployment to the Remix IDE?
import React, {useEffect, useState} from 'react'
import { FaDonate } from 'react-icons/fa';
...
0
votes
1
answer
225
views
How do I rectify an errored smart contract? [duplicate]
I am stuck at the following error message from my smart contract when I click start:
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you ...
1
vote
2
answers
162
views
Testnet deploying contracts
I'm new to developing, and I have a question about fees. For example, the maximum ETH to gain from the faucet is 0.1 ETH, and to deploy my contract on test net cost me 0.8, nearly all my ETH. How do ...
0
votes
1
answer
50
views
How to Create a New Post on Ethereum Research?
I'm having difficulty locating the option to create a new post on the Ethereum Research forum. Could someone please guide me on where to find the "New Topic" or "Create Post" ...
-1
votes
1
answer
57
views
I fundend an ETH smartcontract using .sol and remixeth.io but cancelled contract before withdrawing the coins [duplicate]
0xFcdA2700dCb5fb0f6CD0954498c922cDEbBFE32B
is there any way to get those coins back on my wallet?
1
vote
3
answers
164
views
I tried to deploy on Remix but getting Gas Estimation error and I don't know the reason
Good people of Blockchain, Hello. I wrote a simple smart contract but having a hard time deploying it on Remix. I will try to deploy it on Anvil too since I work with Foundry but for a quick test, I ...
0
votes
1
answer
54
views
call getReserves() function using yul in solidity
what wrong with getReserves2 in A contract, why I cannot staticcall to Pair contract?
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract Pair {
function getReserves() external ...
0
votes
0
answers
25
views
Returning a string from a struct in an array gives opcode error
I have a following piece of code:
contract Disp {
struct Dispute {
string title;
string details;
address defendant;
address transaction;
uint256 status;
...
0
votes
0
answers
45
views
react project cannot get the data from the contract
I copied a project and there is a problem when ( tried to access the page of my react app it shows "failed to fetch"
ERROR
Failed to fetch
TypeError: Failed to fetch
at HttpProvider.<...
0
votes
1
answer
64
views
unstake fails even though there is enough token in the contract
I am creating a staking contract were the rate of interest might change whenever through out the year and the user can stake and unstake any time. So I did draft a contract and I am able to ...
0
votes
1
answer
34
views
Type string storage ref is not implicitly convertible to expected type address
I keep getting this error when trying to compile my code. this same error has occurred at multiple places in my file. The code snippet where the error occurs is as follows:
code:
pragma solidity ^...
0
votes
0
answers
28
views
the execution reverted when I call a certain method from my ERC 721 smart contract using web3js
These are my methods for adding and retrieving of records from my smart contract:
// Function to retrieve records of a patient
function getRecords(address patientAddress) public view returns(Record[] ...
0
votes
0
answers
40
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 ...