We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the console it should be possible to access Natspec info about a contract function.
The repr of a function currently shows the signature:
repr
>>> kyber.swapTokenToToken <ContractTx 'swapTokenToToken(address src, uint256 srcAmount, address dest, uint256 minConversionRate)'>
There should be an info() (or natspec()?) method to get an expanded view of this data:
info()
natspec()
>>> kyber.swapTokenToToken.info() swapTokenToToken(address src, uint256 srcAmount, address dest, uint256 minConversionRate) @dev makes a trade between src and dest token and send dest tokens to msg sender @param src Src token @param srcAmount amount of src tokens @param dest Destination token @param minConversionRate The minimal conversion rate. If actual rate is lower trade is canceled. @return amount of actual dest tokens
It may also be possible to use the NatSpec to give more meaningful exception messages when contract inputs are given improperly.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Overview
In the console it should be possible to access Natspec info about a contract function.
Specification
The
repr
of a function currently shows the signature:There should be an
info()
(ornatspec()
?) method to get an expanded view of this data:It may also be possible to use the NatSpec to give more meaningful exception messages when contract inputs are given improperly.
The text was updated successfully, but these errors were encountered: