Questions tagged [error]
https://en.m.wikipedia.org/wiki/Error
470
questions
0
votes
1
answer
17
views
Getting Undefined when trying to estimate gas with Etherjs
const escrow = new ethers.Contract(config[network.chainId].escrow.address, Escrow, provider)
const gasEstimate = await escrow.estimateGas.depositEarnest(home.id, true, {
value: ethers....
0
votes
0
answers
31
views
Unknown error , Not able to understand the reason of tx revert
function executeRent(uint nftId,uint duration) public {
uint supply = getTotalSupply();
require(nftId<=supply,"Property doesn't exists");
require(tenant[nftId]==msg.sender,&...
0
votes
0
answers
26
views
phantom approval question
hi i’m scanning a token and a critical error comes up regarding this part of the code
receive() external payable {}
description of vulnerability:
PHANTOM PERMIT
The contract’s token transfer mechanism ...
0
votes
1
answer
31
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
38
views
swapExactTokensForTokens error TRANSFER_FROM_FAILED even after approval?
I've read almost every question on here referencing uniswapv2 swapExactTokensForTokens and I'm still getting the same error (below). Here are the specifics:
Environment: local node
Infrastructure: ...
0
votes
0
answers
12
views
Error: pragma solidity >0.4.0 <= 0.9.0; ParserError: Expected ';' but got '}'
Please help me the error: from solidity:
ParserError: Expected ';' but got '}'
Here is the code:
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
...
0
votes
0
answers
14
views
High gas and transaction cost
so this has worked before but now I seem to be getting insufficent funds when I try to create a lock
but what I dont understand is why it's expecting so much gas and transaction fee (165 Matic)
if I ...
0
votes
1
answer
67
views
Getting undeclared identifier error because _exists(tokenId) function doesn't exist (was removed from?) in ERC721
I am trying to create a smart contract for minting soulbound tokens. I found that there's a ERC5192 standard for soulbound tokens (although, for some reason, there's no implementation from ...
0
votes
1
answer
106
views
TypeError: Safe.init is not a function
I am doing trying to initialize a new Protocol Kit as explained in this Safe tutorial:
https://docs.safe.global/sdk/protocol-kit#confirm-the-transaction-second-confirmation
I have this piece of code
...
0
votes
0
answers
25
views
UNPREDICTABLE_GAS_LIMIT error
I am getting an error when running a script that is supposed to generate a number of wallets and fund then with a certain amount of ETH once they are created.
Error:
ERROR:
reason: 'processing ...
0
votes
0
answers
23
views
ParserError: Source Not Found Despite Correct Path
I'm encountering a ParserError when trying to compile my Solidity contract. The error indicates that the specified path is not found, even though I believe the paths are correct.
Error message:...
0
votes
0
answers
28
views
What does this error statement I get from the Remix Vyper plugin mean?
I'm making a contract in vyper that gets a flashloan from aave, swaps at uniswap, then at curve finance, and then repays the loan. However, when I try to compile the code using the Vyper Compiler ...
0
votes
0
answers
15
views
invalid BigNumber string
Say I wanted to create a slightly modified ERC-721, which tracked its historical metadata states. Something like so:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
import { ERC721 } from &...
0
votes
1
answer
34
views
Error: Provider not set or invalid (safari + chrome problem)
I have deployed an ERC20 token on Sepolia. See it here: https://augustwarshauer.com/AugustCoin
It's hosted on github pages, so I cant use node or anything (if I can, news to me).
In my chrome browser, ...
0
votes
0
answers
49
views
Uniswap v3 Mainnet vs Sepolia EvmError: Revert
I'm struggling to solve EvmError: Revert, while calling createAndInitializePoolIfNecessary function on Uniswap v3 NonfungiblePositionManager contract. I have wrote function that contains this code:
...
0
votes
1
answer
10
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 ...
1
vote
0
answers
11
views
Catch internal revert
Is it possible to catch a revert in like an internal decoding? For example:
function mint(
bytes memory data_,
address owner_
) returns(uint) {
...
(AmountsIn memory amts, ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
170
views
Calls to self failing when passing structs
When a contract calls itself using the .call method and attempts to pass a struct, it results in a revert with the following error output:
"error": "Failed to decode output: Error: data ...
0
votes
0
answers
470
views
transaction error execution reverted
I hope someone can help. I bridged some ETH over to the TON network via dedust.
I had issues claiming the transaction, which I have now managed to do. However, recipient’s address hasn't got funded.
...
0
votes
2
answers
44
views
Is there a way to test whether an external contract implements (or does not implement) a given interface method?
How would you determine whether a given contract implements a particular interface method without reverting?
interface IRandomMethod {
function getUint() external view returns (uint);
function ...
0
votes
1
answer
264
views
"Error HH604: Troubleshooting 'missing trie node' issue when forking BSC mainnet using Hardhat
I encountered an issue while attempting to fork the Binance Smart Chain (BSC) mainnet using Hardhat. Here's the command I used:
npx hardhat node --fork https://bsc-dataseed1.defibit.io/
However, I ...
0
votes
1
answer
100
views
"Getting 'Promise { <pending> }' Response When Deploying Smart Contract Using Hardhat - How to Resolve?"
I'm encountering difficulties deploying a smart contract using Hardhat. In my deployment script, I'm using ethers.getContractFactory().deploy() to deploy the BinaryvilleRobotsNFT contract. However, ...
0
votes
0
answers
30
views
General Exception, unable to get compiled [bytecode]
Hi I created a smart contract using Remix, I deployed the contract but now that I try to verify my contract on BscScan I keep getting the following error: Error! Unable to generate Contract Bytecode ...
0
votes
1
answer
21
views
Gnosis error fix - $
Long story short - received payment long ago from a customer, but it was caught up in a gnosis safe error so we couldn't pull the BNB into our wallet. It is sitting here, currently worth $105k.
...
0
votes
1
answer
117
views
i got an critical error when i deploy my contract in hardhat
Error: The specified module could not be found.
\\?\E:\codings\elonNft\node_modules\@nomicfoundation\edr-win32-x64-msvc\edr.win32-x64-msvc.node
at Object.Module._extensions..node (node:internal/...
1
vote
1
answer
2k
views
Fail with errors 'Pancake: TRANSFER_FAILED'
https://bscscan.com/tx/0x41fcd1893c7500ae2ace0ab195bb0c9bbfcfefd05ad794707a65749d358da3df. I don't undestand why my transaction is failed. I fixed my fee limit at 1.500.000 and only 10% was used. If ...
0
votes
0
answers
31
views
Uniswap Front Runner Scam [duplicate]
I just found out that I may have been scammed. Yea, I'm fucking silly.
I followed one tutorial and just to test it out I started with a small amount, but now I cannot withdraw or start the bot.
The ...
1
vote
1
answer
637
views
How to fix error with deploy my Next.js project?
I have my project that I want to deploy to Vercel but when I'm trying to deploy it I got error
Failed to compile.
./node_modules/@wagmi/core/dist/esm/actions/getProof.js
Attempted import error: '...
0
votes
1
answer
34
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 ...
0
votes
0
answers
25
views
cannot estimate gas error when deploying with solidity-create2-deployer
I continuously get the cannot estimate gas error when attempting to deploy a contract using the solidity-create2-deployer contract and I'm clueless as to where the error arises.
find my code below
...
0
votes
0
answers
87
views
Error While installing Foundry
I'm getting an error while installing Foundry using this command
Command:
curl -L https://foundry.paradigm.xyz | bash
Error:
~/desktop/foundry
$ curl -L https://foundry.paradigm.xyz | bash
% Total ...
0
votes
1
answer
310
views
Forge Testing issue
I am looking to get some tips and advice for my smart contract testing as I am a bit stuck. I am currently using Foundry to test my smart contract for my NFT Marketplace project however since I am ...
0
votes
1
answer
151
views
Need help: Although one or more Error Occurred [execution reverted] Contract Execution Completed
iam not able to import this token into metamask. It will be found but after import its not showing up. It seems there is a problem. This is my second buy of a coin. And i need help.
https://etherscan....
1
vote
1
answer
2k
views
Error HH19: Your project is an ESM project (you have "type": "module" set in your package.json) but your Hardhat config file uses the .js extension
Error:
Error HH19: Your project is an ESM project (you have "type": "module" set in your package.json) but your Hardhat config file uses the .js extension.
Rename the file to use ...
1
vote
0
answers
30
views
Foundry Access denied error
I get this access denied error when I run forge test in my VS Code terminal.
0
votes
1
answer
33
views
Facing Issue with test files in Hardhat
I am trying to build a Dapp with hardhat installed in my vs Code my smart contracts parts are over and it gets compiled but I am facing a problem with test files I don't know why they are not getting ...
0
votes
1
answer
14
views
Are errors emitted as logs on the blockchain?
Say if an error is caused due to a revert statement will it be emitted as an event so front end application will be aware or not?
0
votes
0
answers
242
views
Failed to extract foundry config:
I am currently creating a new project using foundry(used hardhat before this) and I am currently getting this error when I run forge build:
failed to extract foundry config:
foundry config error: ...
1
vote
3
answers
562
views
Trying to create a soulbound token. Keep getting two errors
I'm trying to create a soulbound (non-transferable NFT) token on Solidity. Here is my code so far.
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.17 <0.9.0;
import "@openzeppelin/...
0
votes
1
answer
34
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 "...
0
votes
1
answer
597
views
'value at "/0" is required'
const {Web3} = require("web3");
require("dotenv").config();
const sPrivateKey = process.env.SENDER_PRIVATE_KEY;
const sPublicKey = process.env.SENDER_PUBLIC_KEY;
const rPublicKey =...
0
votes
1
answer
124
views
Unknown key "viaIR"
Unknown key "viaIR"
Error HH600: Compilation failed
I'm encountering the above error when I try to compile.
Here is my hardhat.config.ts
import { HardhatUserConfig } from "hardhat/...
0
votes
0
answers
93
views
Hardhat MetaMask Error: Transaction decoding is not available for chainId 31337
I created a Real-Estate Decentralized Contract and connected it with Vite-React using ethers.js.
I'm using Meta Mask and HardHat local network for Hardhat free Ether. I import 5 wallets of Hardhat to ...
2
votes
0
answers
240
views
web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function
I deployed simple helloworld code and want to call contract function. It must return "Hello World!"
My contract is
pragma solidity >=0.5.16;
contract HelloWorld {
...
0
votes
0
answers
20
views
Need help testing my smart contract. Error cannot read undefined
I am testing my smart contract and I am getting this Assertion Error. I do not know or understand what it means and after searching how to fix it online and making some adjustments to my code, I am ...
0
votes
1
answer
442
views
Hello, I want to sell tokens, it gives me the same error
The contract function "swapExactTokensForTokensSupportingFeeOnTransferTokens" reverted with the following reason: PancakeLibrary: INSUFFICIENT_INPUT_AMOUNT
1
vote
1
answer
168
views
Generic "Error" with no further message when trying to interact with ERC-4337 Entry Point from Remix IDE
I try to learn basics of ERC-4337 standard, so I deployed a simplest possible example of a contract implementing account interface on Goerli testnet - it just has one operation that changes its ...
0
votes
0
answers
27
views
Safe CLI Transaction - Invalid Syntax
I sent an nft to the wrong chain (eth) so I created a new gnosis wallet on the correct chain (optimism) with the same address.
I am now trying to send that nft using safe cli; I am using the following ...
0
votes
1
answer
163
views
Transaction Builder: Error Message: GS013
I sent an nft to the wrong chain (eth) so I created a new wallet through the loom video on the correct chain (optimism). Now I am trying to send my nft from my newly created wallet on optimism with ...