Describe the bug
If I pass publicKey to a specific method call on a contract client, it tells me that's not supported:
But it actually is passed through!
What version are you on?
12.3.0
To Reproduce
Steps to reproduce the behavior:
- Instantiate a contract client, omitting
publicKey
- For a write method, set
publicKey to your sender's address. You may need to add a // @ts-ignore or // @ts-expect-error before the line!
- See that the
publicKey you set on the method call is set as the invoker on the call.
Expected behavior
We need to update the types to let people know they can do this! It's super handy, allowing you to have static contract clients in the project (as set up in our frontend templates), but still override transaction senders for change methods (which are actually fairly rare in apps, in my experience)
Additional context
We will need to update the types generated in the TS bindings to match, once this is done.
Describe the bug
If I pass
publicKeyto a specific method call on a contract client, it tells me that's not supported:But it actually is passed through!
What version are you on?
12.3.0
To Reproduce
Steps to reproduce the behavior:
publicKeypublicKeyto your sender's address. You may need to add a// @ts-ignoreor// @ts-expect-errorbefore the line!publicKeyyou set on the method call is set as the invoker on the call.Expected behavior
We need to update the types to let people know they can do this! It's super handy, allowing you to have static contract clients in the project (as set up in our frontend templates), but still override transaction senders for change methods (which are actually fairly rare in apps, in my experience)
Additional context
We will need to update the types generated in the TS bindings to match, once this is done.