foundry
foundry copied to clipboard
Error: Etherscan could not detect the deployment.
Component
Forge
Have you ensured that all of these are up to date?
- [X] Foundry
- [ ] Foundryup
What version of Foundry are you on?
forge 0.2.0
What command(s) is the bug in?
forge script ./script/Chatter.s.sol:ChatterScript --rpc-url http://localhost:1248 --broadcast --sender 0xe723db61481390dFe97558fF454f9B0F40181830 --unlocked --chain-id 11155111 --verify
Operating System
macOS (Intel)
Describe the bug
Hello everyone, I am facing an issue while trying to upload my smart contract on the Sepolia testnet network. Although the deployment is successful and I can view the transaction on Sepolia Etherscan, the input data for the contract is empty. Also when I am trying to verify the contract I receive this error "Error: Etherscan could not detect the deployment."
I would highly appreciate it if you could help me with this.
here is my script contract code
`//SPDX-License-Identifier: MIT pragma solidity ^0.8.20;
import {Script} from "forge-std/Script.sol"; import {Chatter} from "../src/Chatter.sol";
contract ChatterScript is Script {
function run() public{
vm.broadcast();
new Chatter();
}
} `