Skip to main content

All Questions

0 votes
0 answers
26 views

Error: cannot estimate gas; transaction may fail or may require manual gas limit [See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT]

I have written test cases for the Bridge smart contract, which uses LayerZero for cross-chain communication. However, when I set up the Hardhat project and attempted to run the test cases, I ...
Nitesh Mehra's user avatar
0 votes
1 answer
37 views

Chainlink VRF: Created Subscription ID Mismatch Between On-Chain and Dashboard

I'm encountering an issue where the subscription ID returned by my script is different from the one shown on vrf.chain.link for the Sepolia network, which when i try to fund to the subid from my ...
Phc Chu Vaky Ramadan's user avatar
0 votes
0 answers
34 views

Can I implement a tax deduction feature in an ERC20 contract where the tax is deducted in BNB or ETH when a user swaps tokens on PancakeSwap?

The _transfer() function only handles ERC20 token transfers, so I can't implement any logic for ETH or BNB within it. I integrated some functions, but they were not callable on PancakeSwap. When I ...
Nitesh Mehra's user avatar
1 vote
0 answers
12 views

Error in adding a struct containing a mapping in an array in solidity

I am new to Solidity and am trying to add a struct containing a mapping to an array. However, this fails. When I run this on Remix I get a message transact to CampaignFactory.createCampaign pending ......
Shubham Tiwary's user avatar
1 vote
0 answers
24 views

Uniswap V3: Unable to Add Liquidity After Deploying ERC20 Token with Tax Mechanism

I am trying to add liquidity to Uniswap V3 for my ERC20 token, which has a 4% tax deduction on transfers. The tax mechanism ensures that whenever users transfer tokens, 4% is sent to the owner's ...
Nitesh Mehra's user avatar
0 votes
0 answers
29 views

I am unable to swap the token after adding liquidity to Uniswap V2

I have deployed an ERC20 contract on the Sepolia chain and added liquidity on Uniswap V2. However, when I tried to swap the token with ETH, the token price was not being calculated, and I was unable ...
Nitesh Mehra's user avatar
0 votes
1 answer
39 views

Pitfalls in small smart contract

Here is a question from a coding interview. I am just wondering what would be the major pitfall in this small smart contract in your opinion: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; ...
Tony Nagy's user avatar
0 votes
0 answers
83 views

PancakeSwap universal router usage. Web3, PancakeSwap, Bsc testnet

I'm working on an integration with PancakeSwap using Java and Web3J. All my tests were conducted on BSC Testnet. After conducting some research, I used the UI to perform a transaction that went ...
Fife's user avatar
  • 1
-2 votes
2 answers
55 views

Why it is taking high cause fee

https://bscscan.com/address/0x1732b451aa189832109e8715b9ae0563bab7c2bc#writeContract I have deployed this contract on BSC, can someone guide why it is taking some much gas fee. If you have any ...
user919573's user avatar
0 votes
0 answers
16 views

I am currently working on a project and encountered a persistent issue with deploying smart contracts on the Hardhat local blockchain

Issue Summary: 1.Problem: When deploying two smart contracts (DonorRegistration.sol and DonationRecords.sol), they were both getting the same address on the Hardhat network, which should not happen. 2....
Gnaneshwar Reddy's user avatar
0 votes
0 answers
29 views

Cannot place a transcaction on a smart contract through the front end

Im trying to use a bet function i have build on a smart contract but keep getting this error here: page.js:92 Error placing bet: Error: transaction execution reverted (action="sendTransaction&...
Jay's user avatar
  • 19
1 vote
0 answers
24 views

How to Deploy a Smart Contract and Have Someone Else Sign the Transaction? Polygon

I'm trying to deploy a Smart Contract on the Polygon mainnet, but I need the deployment transaction to be signed by someone else's wallet (so they become the contract owner and receive the tokens). I’...
user2701487's user avatar
-1 votes
1 answer
93 views

Why are the NFT images not visible?

I created a ERC721 type smart contract to mint 8 NFT's to the Polygon blockchain. The NFT images are stored on my own server (for this project I don't use IPFS). I also created the corresponding json ...
Bart DV's user avatar
0 votes
0 answers
44 views

Facing error(Execution revert: STF) while swapping the USDC into wAVAX Tokens in Avalanche C chain

I'm facing the Error(execution revert: STF) while swapping USDC into wAVAX I’m encountering the following error message when attempting to swap USDC for AVAX using the Uniswap V3 exactInputSingle ...
Abishek 's user avatar
-2 votes
1 answer
149 views

Where does this smart contract send the money? [closed]

I am new to Solidity and Smart Contracts. I saw a Youtube video of a supposed automated bot which I am sure it is a scam. This is the code the they provided and I cannot tell where the money is ...
Kristi Jorgji's user avatar

15 30 50 per page
1
2 3 4 5
124