PatrickAlphaC / brownie_fund_me

26 stars 64 forks source link

Brownie output says contract deployed, but not able to verify it on etherscan #25

Closed ghost closed 2 years ago

ghost commented 2 years ago

I made a python program "deploy.py" to deploy a solidity "FundMe.sol" contract. from brownie import FundMe, accounts,

config from scripts.helpful_scripts import get_account
from brownie import FundMe, accounts, config
from scripts.helpful_scripts import get_account
def deploy_fund_me():
    account = accounts.add(config["wallets"]["from_key"])
    print(account)
    fund_me = FundMe.deploy({"from": account})
    print("---------Contract Deployed to ", fund_me.address)

def main():
    deploy_fund_me()

When I run the deploy.py program, I get an output which says that the contract has been deployed on the given address.


Binoy John@DESKTOP-ATPUI3D MINGW64~/Desktop/Binoy/project/BlockChain/demos/brownie_fund_me
$ brownie run deploy.py --network rinkeby
INFO: Could not find files for the given pattern(s).
Brownie v1.16.4 - Python development framework for Ethereum

BrownieFundMeProject is the active project.

Running 'scripts\deploy.py::main'...
0x9AEa174491c2ecF7920021CE4252270777810ee8
Transaction sent: 0x303eee544cab7eec134e7a56d9f85735dbb972a924466cd2610654b17ecd7ff5
  Gas price: 1.679044371 gwei   Gas limit: 397721   Nonce: 121
  FundMe.constructor confirmed   Block: 10054471   Gas used: 361565 (90.91%)
  FundMe deployed at: 0xFc4836fe3593e9b434513A48c9CBA04EE019ccC8

---------Contract Deployed to  0xFc4836fe3593e9b434513A48c9CBA04EE019ccC8

However, when I paste the contract address on the Rinkeby Etherscan website, it says "There are no matching entries" and does not show any transfer or verification of deployment of the contract.

image

Please let me know where have I gone wrong as I am a noob at this. Also let me know if you need any other info to help me out with this problem. Thanks in advance!!

ghost commented 2 years ago

Messed up the code formatting earlier