Skip to content

Conversation

@flanagansteve
Copy link
Contributor

@flanagansteve flanagansteve commented Aug 31, 2024

Previously, fn_name was a named argument in the example snippet, used like:

contract.encode_abi(fn_name="register", ...)

But now, fn_name is the unnamed first argument, used like:

contract.encode_abi("register", ...)

(I believe, at least - I note that line 326, which defines the class method, uses it this way:

.. py:classmethod:: Contract.encode_abi(fn_name, args=None, kwargs=None, data=None)

And in my local project encode_abi("getNames", ...) worked where encode_abi(fn_name="getNames", ...) did not, which makes me think encode_abi("register", ...) is indeed the correct one.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

Previously, fn_name was a named argument, used like:

```
contract.encode_abi(fn_name="register", ...)
```

But now, fn_name is the unnamed first argument, used like:

```
contract.encode_abi("register", ...)
```

(I believe, at least - I note that line 326, which defines the class method, uses it this way:

```
.. py:classmethod:: Contract.encode_abi(fn_name, args=None, kwargs=None, data=None)
```

And in my local project `encode_abi("getNames", ...)` worked where `encode_abi(fn_name="getNames", ...)` did not.
@pacrob pacrob self-assigned this Sep 4, 2024
@pacrob pacrob requested review from fselmo, kclowes and reedsa September 4, 2024 16:13
@pacrob
Copy link
Contributor

pacrob commented Sep 4, 2024

Thanks, @flanagansteve! I've updated related places, otherwise should be gtg.

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@pacrob pacrob merged commit c4d07a3 into ethereum:main Sep 4, 2024
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 this pull request may close these issues.

3 participants