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

Expose meta on contract.{tx, query}.<method>.meta #4484

Closed
jacogr opened this issue Jan 21, 2022 · 1 comment · Fixed by #4485
Closed

Expose meta on contract.{tx, query}.<method>.meta #4484

jacogr opened this issue Jan 21, 2022 · 1 comment · Fixed by #4485

Comments

@jacogr
Copy link
Member

jacogr commented Jan 21, 2022

This aligns with what is done in the API itself.

Basically adjust these functions to decorate the metadata on the returned function (obviously with the correct function + metadata return interfaces, e.g. https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/base/types.ts#L17-L27) -

createQuery https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/base/Contract.ts#L32 and createTx https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/base/Contract.ts#L39 both needs needs to have the meta: AbiMessage parameter passed and then put on the actual returned function.

@jacogr jacogr changed the title Expose meta on contractAbi.{tx, query}.<section>.<metod>.meta Expose meta on contract.{tx, query}.<section>.<metod>.meta Jan 21, 2022
@jacogr jacogr changed the title Expose meta on contract.{tx, query}.<section>.<metod>.meta Expose meta on contract.{tx, query}.<method>.meta Jan 21, 2022
@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants