Skip to content
New issue

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

Include function return names in docs and Inspection of TxData #42

Closed
alisinabh opened this issue Oct 19, 2023 · 0 comments · Fixed by #51
Closed

Include function return names in docs and Inspection of TxData #42

alisinabh opened this issue Oct 19, 2023 · 0 comments · Fixed by #51
Milestone

Comments

@alisinabh
Copy link
Member

alisinabh commented Oct 19, 2023

Expected results

iex(1)> Ethers.Contracts.ERC20.name()
#Ethers.TxData<function name() view returns (string name)>

iex(2)> h Ethers.Contracts.ERC20.name

                                   def name()

  @spec name() :: Ethers.TxData.t()

Executes name() on the contract.

This function should only be called for result and never in a transaction on
its own. (Use Ethers.call/2)

State mutability: view

## Return Types (when called with `Ethers.call/2`)name: `:string`

Depends on poanetwork/ex_abi#151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant