-
Notifications
You must be signed in to change notification settings - Fork 9
Creating nft collection using capi #1048
Comments
|
@harrysolovay 1. That doesn't make sense to me, so capi has a type PjsSender which literally means it uses/mimics pjs type, but instead of using an actual type from @polkadot/types it has a copy-paste custom implementation, which is not fully updated to mimic the latest revision of that type. Just making the method signPayload optional would fix the issue.
but don't know why it fails. |
Ok, I found the second issue
pjs_sender is missing keymap for ChargeAssetTxPayment |
PJS has arbitrary hard-coded alternate formats for the extrinsic extra & additional, so in the pjs compat pattern we need to duplicate those transformations. Looks like we were indeed missing |
Great to hear, I'll check it out later, thanks @tjjfvi |
My code goes like this
I need a type assertion for PjsSigner to avoid TS errors
I'm using a Signer type from @polkadot/types which has signPayload parameter as optional, while PjsSigner's signPayload is mandatory.
when executing the code I get an error
pjs signer: unknown extension ChargeAssetTxPayment
in capi => pjs_sender => convertExtensionCodec I can add a dirty hack and the execution goes further
The text was updated successfully, but these errors were encountered: