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
An important consideration is that Brownie is fairly loose with types. There could be situations where it is not possible to determine the correct function from the given inputs. It could be possible to use stricter type checks, but if that's inconsistent with how everything else works - maybe better to just raise and demand explicitness.
The text was updated successfully, but these errors were encountered:
Overview
OverloadedMethod
should infer which method is being called, based on the given inputs.OverloadedMethod
.Related: https://ethereum.stackexchange.com/questions/79505/what-is-a-good-alternative-to-contracttranslator-encode-abi
Specification
As an example, consider the ERC223 transfer function, which is possible as
(address,uint256)
and(address,uint256,bytes)
.The following examples should all work:
An important consideration is that Brownie is fairly loose with types. There could be situations where it is not possible to determine the correct function from the given inputs. It could be possible to use stricter type checks, but if that's inconsistent with how everything else works - maybe better to just raise and demand explicitness.
The text was updated successfully, but these errors were encountered: