You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jacogr
changed the title
Expose meta on contractAbi.{tx, query}.<section>.<metod>.meta
Expose meta on contract.{tx, query}.<section>.<metod>.metaJan 21, 2022
jacogr
changed the title
Expose meta on contract.{tx, query}.<section>.<metod>.meta
Expose meta on contract.{tx, query}.<method>.metaJan 21, 2022
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.
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 andcreateTx
https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/base/Contract.ts#L39 both needs needs to have themeta: AbiMessage
parameter passed and then put on the actual returned function.The text was updated successfully, but these errors were encountered: