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 :
Verification complete. Result: Fail - Unable to verify. Compiled contract runtime bytecode does NOT match the on-chain runtime bytecode.
here is the python/brownie script to deploy and verify :
from scripts.utils import get_account
from brownie import PoolConfiguration, Pool, PoolLogic, ReservesManager, config, network
account = get_account()
def main():
deploy_pool_configuration()
def deploy_pool():
pool = Pool.deploy(
{"from": account},
publish_source=True,
)
return pool
def deploy_pool_configuration():
pool = Pool[-1]
pool_configuration = PoolConfiguration.deploy(
pool,
{"from": account, "priority_fee": "5 gwei"},
publish_source=True,
)
return pool_configuration
has anyone any idea one why this error occurs and how to fix it ? or what it means by runtime bytecode ?