You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contract.publish_source fails to verify contracts deployed by other smart contracts.
No error message is given by brownie.
Investigation showed that Brownie failed at the constructor_arguments lookup step.
How can it be fixed?
Brownie is not smart enough to look up the constructor parameters for contracts deployed by other contracts.
For example, see this contract deployed by an internal transaction:
Brownie fails to verify contracts deployed this way.
I put together a diff to show a potential workaround that we currently use, but I am not sure if that’s the best fix to adopt in Brownie. The workaround involves skipping the constructor_arguments lookup if supplied directly.
See https://github.com/eth-brownie/brownie/pull/1662/files
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: 1.19.1solc
Version: 0.8.7What was wrong?
Contract.publish_source
fails to verify contracts deployed by other smart contracts.No error message is given by brownie.
Investigation showed that Brownie failed at the
constructor_arguments
lookup step.How can it be fixed?
Brownie is not smart enough to look up the constructor parameters for contracts deployed by other contracts.
For example, see this contract deployed by an internal transaction:
I put together a diff to show a potential workaround that we currently use, but I am not sure if that’s the best fix to adopt in Brownie. The workaround involves skipping the
constructor_arguments
lookup if supplied directly.See https://github.com/eth-brownie/brownie/pull/1662/files
The text was updated successfully, but these errors were encountered: