Questions tagged [error]
https://en.m.wikipedia.org/wiki/Error
400
questions
0
votes
0
answers
5
views
could not detect network Error
I have deployed my contract in vs code with hardhat same as the https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/
but I got network error like bellow :
How can i solve this ...
1
vote
1
answer
18
views
Using an Array to Delete Mappings
BEFORE YOU DOWNVOTE
I know questions on deleting mappings have come up thousands of times but I'd like to pose a question... can you delete it if it's in an array?
the following code allows the caller ...
0
votes
0
answers
8
views
contract.methods can not define contract
The problem that i am having is that my contract.methods is not responding when im trying the mint function on my localhost and im constantly getting an error on the website saying: Uncaught ...
0
votes
0
answers
13
views
Does someone know the reason for these errors happening?
Does someone know the reason for these errors happening??
0
votes
1
answer
33
views
execution reverted: 27 HELP?
I have a simple flashloan solidity code :
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import {FlashLoanSimpleReceiverBase} from "@aave/core-v3/contracts/flashloan/base/...
0
votes
1
answer
18
views
How to put error inside modifier?
Lets say i have this error:
error Main__ContractNotAllowed();
And also i have this modifier which checks this mapping:
mapping (address => bool) private isAllowed;
modifier onlyAllowedContracts() ...
0
votes
0
answers
10
views
My staging test and unit tests are exceeding timeouts
Whenever I try to pass my staging tests, its exceeding the timeout of 500000ms. Same is for my unit test "picks a winner , resest the lottery , and sends money:" test. I am pasting my code ...
0
votes
1
answer
18
views
Error Message: out of gas
when making a swap via IUniswapV2Router(router).swapExactTokensForTokens(_amount, 1, path, address(this), deadline) on Goerli i got the following error on Tenderly:
1
vote
1
answer
33
views
Property 'revertedWithCustomError' does not exist on type 'Assertion'
Im updating my project from Javascript to Typescript. Up until now I had no issues using revertedWithCustomError. When trying to assert with revertedWithCustomError I get the following linter error ...
0
votes
1
answer
10
views
Data location must be "calldata" for parameter in external function, but none was given. --> Undeclared identifier
In Remix, I'm getting the following error.
contracts/TestBench.sol:138:30:
TypeError: Data location must be "calldata" for parameter
in external function, but none was given.
function ...
0
votes
1
answer
15
views
deployment errors in code due to constructor arguments
here is the contarct I am trying to deploy:
// Raffle
// Enter the lottery (paying some amount)
// Pick a random Winner (verifiably random)
// Winner to be selected every x-minutes -> completely ...
0
votes
1
answer
13
views
Facing constructor arguments error while running my staging tests on the goerli network
here is my staging test below which I am trying to test on goerli network:
const { assert, expect } = require("chai")
const { getNamedAccounts, ethers, network } = require("hardhat"...
0
votes
1
answer
21
views
Staging test errors: Error: No Contract deployed with name Raffle
const { assert, expect } = require("chai");
const { getNamedAccounts, ethers, network } = require("hardhat");
const { developmentChains } = require("../../helper-hardhat-...
0
votes
1
answer
107
views
Contract verification Failed
I have two contracts Pool and PoolConfiguration, when deploying them to goerli test they both deploy successfully but when verifying on etherscan PoolConfiguration fail to verify and drops this error :...
0
votes
0
answers
15
views
Error while running slither
Getting this error :
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 11: invalid start byte
while running slither . on the root of my brownie project .
have someone faced this ...
0
votes
0
answers
14
views
Invalid Opcode Error SHR [duplicate]
call to UniswapV2Factory.INIT_CODE_HASH
call to UniswapV2Factory.INIT_CODE_HASH errored: Internal JSON-RPC error.
"code": -32000,
"message": "invalid opcode: SHR"
I'...
0
votes
1
answer
6
views
error while deploying the contract-error encoding argument
pragma solidity ^0.8.0;
contract Invoice {
// The PAN of the buyer
string public buyerPAN;
// The PAN of the seller
string public sellerPAN;
// The amount of the invoice
...
1
vote
1
answer
171
views
Unable to deduce common type for array elements in bytes[ ]. Why I am getting this even the first line works perfectly but 2nd one's throws error?
I am trying to get understanding of bytes array but encountered an error where,
contract Mytest {
>
> bytes[] public arr1 = [bytes("happy"), "names"]; // This line ...
0
votes
0
answers
14
views
Does anyone have experience with an ERC721 NFT battle contract? [duplicate]
That's now my second try to create a battle Contract for ERC721 NFTs with a reward and Burn function but I'm kind of stuck, if someone has a few hints I would be very grateful. EDIT: Visibility for ...
0
votes
1
answer
13
views
Error when calling already deployed contract: AttributeError: Final argument must be a dict of transaction parameters that includes a `from` field
I'm trying to create a contract that communicates with JIRA API through Chainlink Oracle on the Goerli Network.
The interaction should create a JIRA project, then write some of the returned JSON's ...
0
votes
1
answer
22
views
Runtime error for reversing bytes in Solidity!
I decided to use the below code to reverse bytes32 values in Solidity:
pragma solidity ^0.8.0;
contract Reverse{
function reverse(bytes32 pad) pure public returns(bytes memory){
bytes ...
1
vote
1
answer
93
views
Error Installing ETH Brownie
So I get a error for each of the 3 different processes when I attempt to install eth-brownie on my Mac OS...
With "pip install eth-brownie", I get the error
fatal error: too many ...
0
votes
1
answer
12
views
This function gives me an error. I'm confused. I keep getting ParserError: Expected '(' but got identifier
function transferFrom(address from, address to, uint value) public returns (bool) {
require(balanceOf(from) => value, 'balance too low');
require(allowance)[from][msg.sender] >= ...
0
votes
1
answer
35
views
ParserError: Expected '(' but got identifier constructor Inbox(string initialMessage) public {
pragma solidity ^0.4.25;
contract Inbox {
string public message;
constructor Inbox(string initialMessage) public {
message = initialMessage;
}
function setMessage(string ...
1
vote
1
answer
401
views
I get error 503 while claiming 0.2 Goerli ETH on Alchemy
I'm trying to get 0.2 Goerli ETH in the testnet token faucet, but when I paste my address to claim and I request the amount, I still get the following error:
'Request failed with status code 503'
...
0
votes
0
answers
31
views
Reason for overflow or underflow statement in solidity 0.8.16
//------------------------
// EXECUTING ORDERS
//------------------------
function fillOrder(uint256 _id) public {
// 1. Must be valid orderID
require(_id > 0 && _id <= ...
1
vote
1
answer
96
views
Why I can't import private key to metamask?
I'm new. Sorry for the question. Please, help me to understand why I can't import a similar private key to metamask:
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE8AF48A04CBFD47E8CB0366361 how I can fix this?...
0
votes
1
answer
14
views
I get this type error question while writing my solidity Programming
//SPDX-License-Identifier:MIT
pragma solidity 0.6.1;
contract ExampleMapping1{
mapping(uint => string) names;
struct Name{
string yourName;
}
function MyNames(uint _rNo,...
0
votes
0
answers
15
views
Please help me understand this error message?
What does this error message means? I cannot understand it.
0
votes
1
answer
143
views
Error: invalid BigNumber value (argument="value", value=undefined during a exactOutputSingle swap
I'm facing a problem who's driving me crazy
I'm trying to create a swap with this code :
my_tx = await routerV3.exactOutputSingle({
tokenIn: '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6',
...
0
votes
1
answer
357
views
Trying to withdraw from contract - Fail with error 'WARNING: not enough ETH for profitable frontrunning. Need at least 1 ETH at present market ...' [duplicate]
Tried to use a standard front running bot but the thing is my eth is still on the contract so I don't think I've been scammed (yet) makes no sense since my eth is still sitting there.
this is the code
...
0
votes
2
answers
200
views
Error encountered during contract execution [invalid opcode: INVALID]
I was using Web3.py to send Tether from address A to B:
w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/REDACTED'))
teth = '0xdAC17F958D2ee523a2206206994597C13D831ec7'
# ...
0
votes
1
answer
22
views
Can someone please help me with this deployment error?
This error occurred while deploying to Ganache using Truffle.
0
votes
1
answer
84
views
Truffle Migrate Error: The network id specified in the truffle config (5777) does not match the one returned by the network (1)
I'm a bit new here and I've been trying to migrate truffle however I keep running into this error:
Error: The network id specified in the truffle config (5777) does not match the one returned by the ...
0
votes
0
answers
63
views
Optimism Transaction: Input List error
I have encountered a tricky issue when making a simple transfer transaction on Optimism.
I use a standard UI flow to construct the following transaction object (output by Ethers.Js). The transaction ...
0
votes
2
answers
48
views
How do does the trasaction error catching work?
I am trying to understand how errors, specially custom-errors, are being handled when Ethereum transactions are reverted.
From what I know, both successful and reverted transactions are mined into the ...
3
votes
4
answers
369
views
Is it possible to return something when the condition inside the require fails?
Is it possible to return 0 inside a function in contract when the condition inside the require results to false?
contract MyContract {
function initialize() public payable returns (uint) {
...
0
votes
0
answers
166
views
Internal JSON-RPC error. { "code": -32000, "message": "execution reverted"
How can I solve this mistake every time I try to deploy a contract in the testnet. I hope you guys can help me.
This is the code // SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface ...
1
vote
1
answer
29
views
Error in Contract
I made the below line of code to throw a error on purpose for a tutorial I am doing. I think I understand why this would throw an error but just to be sure can someone explain to me why it would throw ...
0
votes
0
answers
174
views
timeout error while writing staging test on Goerli
Im stuck in this wierd error.
so the thing is when I first tried to deploy the contract on goerli it deployed and verified correctly on etherscan. but after that when I tried to run my staging test it ...
0
votes
0
answers
172
views
NomicLabsHardhatPluginError: Failed to send contract verification request
Im stuck in this wierd error.
so the thing is when I first tried to deploy the contract on goerli it deployed and verified correctly on etherscan. but after that when I tried to run my staging test ...
1
vote
0
answers
67
views
Error Installing dependencies
I cloned the starter kit into decentraTwitter folder, cd into that folder and ran npm install. Now I’m getting this error in the terminal:
npm WARN deprecated ganache-core@2.13.2: ganache-core is now ...
2
votes
1
answer
122
views
Pancakeswap swapExactETHForTokens fails with non zero value in input
i have a problem with swapExactETHForTokens(). It seems to fail everytime I change the input value to something else than Zero.
To help you to follow the path of de DATA, I show you :
...
0
votes
0
answers
106
views
Got this Error by interacting with my first smart contract: ReferenceError: ethers is not defined
Hello I try to interact with my smart contract which I deployed before. I follow the tutorial und Web3 University but at the last step I get this Error: ReferenceError: ethers is not defined. And even ...
0
votes
0
answers
60
views
OpenCL not detected, Kawpowminer
and thank you for taking your time to read this and maybe helping me.
I know that kawpowminer is not exactly a eth-miner but it works similar and I really need and appreciate any help. Maybe it helps ...
0
votes
1
answer
131
views
Sync failed from archive nodes even after reset blockchain on private network
I am currently suffering from sync fail issue while running my own private network.
Over 20 nodes were fully connected each other and running consensus (or mining) as archive mode, with full sync mode ...
1
vote
2
answers
107
views
Please Resolve this error
Why I am getting the error in the modifier function its showing red underline under the _amount variable name.
I also want to ask about whether the require function works inside the modifier because ...
0
votes
1
answer
32
views
" Returned error: intrinsic gas too low" trying to deploy a contract on rinkeby
I'm trying to deploy a contract on rinkeby testnet and I receive this error message:
"Returned error: intrinsic gas too low".
This is my code:
web3.eth.getTransactionCount(address1,(err,...
1
vote
1
answer
39
views
How to continue loop if it fails in hardhat
I am using hardhat.
I have a async function main() that i want to loop with a delay of 5 seconds. The problem is that, it exits the loop when an error happens, and it happens the first time...
(async (...
0
votes
1
answer
66
views
ReferenceError: totalSupply is not defined
Im using a course, and I got this error:
ReferenceError: totalSupply is not defined
and Idk what it means by that, cause I never got this error before.
can somebody help me fix this error? thanks
and ...