28 questions
0 votes
0 answers
49 views
Counter and Number are returning undefined in React with wagmi in Next.js from Smart contract Web3
I’m working on a Next.js application and using Wagmi to interact with a smart contract. The issue I'm facing is that when I call the getDoubledNumber() and number() functions from the frontend using ...
1 vote
0 answers
57 views
How to intercept Remix-initiated transactions in MetaMask Snap and broadcast to a custom blockchain RPC?
I'm building a MetaMask Snap and I need help with the following use case: A user deploys a smart contract using Remix IDE. Instead of MetaMask directly sending the transaction to the default Ethereum ...
0 votes
0 answers
30 views
remix.ethereum.org : typing web3 on remix terminal gives "undefined"
Configured remix.ethereum.org ( Browser based Remix IDE ) . Environment set to Injected Web3 Provider Metamask. Network in Metamask is set to Infura Sepolia using RPC URL. https://sepolia.infura.io/v3/...
0 votes
2 answers
637 views
Undeclared Identifier Error for _exists() Function in Solidity Contract Using OpenZeppelin
Question Body: I'm developing an ERC721 contract using OpenZeppelin libraries, and I'm encountering an error when calling _exists() in my Solidity contract. The error message is: DeclarationError: ...
-1 votes
1 answer
88 views
I cant deploy my solidity contract, it keeps saying invalid character
I am new to Solidity and smart contracts but I am trying to deploy a smart contract on remix-ide. It's a snipping arbitrage bot that's supposed to trade Ethereum but when I try to deploy it, Remix ...
0 votes
1 answer
89 views
How to Resolve Import Errors for Hardhat, OpenZeppelin, and Chainlink Contracts on BscScan?
This is my code for the contract on solidity:(Token Deployed on BNB smart chain Mainnet) // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import { ECDSA } from "@openzeppelin/contracts/...
1 vote
0 answers
50 views
Revert error when using getConversionRate PriceConverter 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
1 answer
53 views
Solidity simple contract for withdrawing balance
I wrote a solidity contract for withdrawing balance of cantract. May someone tell if its working. withdrawSafe should prevent reentrancy attack, but i don`t know if it is. Just check if everything is ...
0 votes
1 answer
48 views
Remix Solidity Array: Why modifying array does not return array value
// SPDX-License-Identifier: Unlicensed pragma solidity >= 0.7.0; contract Basic{ uint[] public val = [1,2]; function demo() public returns(uint) { val[0] = 22; ...
1 vote
2 answers
332 views
Chainlink VRF: Subscription ID Exceeds uint64 Limits
I'm working on a smart contract using Chainlink VRF (Verifiable Random Function) on the Ethereum Sepolia network. According to the documentation and examples, the subscription ID should be a uint64. ...
0 votes
1 answer
149 views
Error: "execution reverted" when calling Chainlink Data Feed function in Remix on Polygon Cardano Testnet
I am trying to use the ETH/USD price data feed on the Polygon Cardano Testnet via Remix. I deployed the following contract successfully: // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import ...
0 votes
1 answer
79 views
Call function in withdraw() returns false
The call function in the withdraw() returns false and the require statement below it logs "Transfer failed". I've asked ChatGPT and it says that "check your gas limit".(my gas ...
0 votes
1 answer
574 views
Solidity Contract Deployment Fails with missing trie node Error
I'm trying to deploy a simple Solidity contract using Remix, but I'm encountering an error related to missing trie nodes. Here is my contract code: // SPDX-License-Identifier: MIT pragma solidity ^0.8....
0 votes
0 answers
65 views
Solidity Version mismatch in Smart contract
I tried to deploy the smart contract code in Remix Ethereum IDE but I am stuck with some errors. I tried to update the version of Solidity and do I added construct function in the contract. Although ...
1 vote
0 answers
38 views
In a simple smartcontract withdrawAll function issue. Value in transaction is 0 ETH
I'm very new in development. I have a simple smart contract that has 2 functions. 1 is to receive payments from any address. 2 withdrawAll that works only for the owner of the contract. The problem is ...