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
BugTracks issues causing errors or unintended behavior, critical to fix for reliability.P1 - HighEssential for progress, blocks other tasks. Must be completed soon to maintain project flow.
Hello there, I'm getting the following issue:
It sounds like the @polkadot/types that is used in @polkadot/extension-inject is not compatible with the latest version of @polkadot/types. E.g, when doing a .signAndSend(account.address, { signer: injector.signer } I get the following error on the signer:
Type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/extension-inject/node_modules/@polkadot/types/types/extrinsic").Signer' is not assignable to type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/types/types/extrinsic").Signer'.
Types of property 'update' are incompatible.
Type '((id: number, status: H256 | ISubmittableResult) => void) | undefined' is not assignable to type '((id: number, status: ISubmittableResult | H256) => void) | undefined'.
Type '(id: number, status: H256 | ISubmittableResult) => void' is not assignable to type '(id: number, status: ISubmittableResult | H256) => void'.
Types of parameters 'status' and 'status' are incompatible.
Type 'ISubmittableResult | H256' is not assignable to type 'H256 | ISubmittableResult'.
Type 'ISubmittableResult' is not assignable to type 'H256 | ISubmittableResult'.
Type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/types/types/extrinsic").ISubmittableResult' is not assignable to type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/extension-inject/node_modules/@polkadot/types/types/extrinsic").ISubmittableResult'.
Types of property 'dispatchError' are incompatible.
Type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/types/interfaces/system/types").DispatchError | undefined' is not assignable to type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/extension-inject/node_modules/@polkadot/types/interfaces/system/types").DispatchError | undefined'.
Property '#private' is missing in type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/types/interfaces/system/types").DispatchError' but required in type 'import("/ChainSafe/cypress-polkadot-wallet/node_modules/@polkadot/extension-inject/node_modules/@polkadot/types/interfaces/system/types").DispatchError'.ts(2322)
Enum.d.ts(21, 5): '#private' is declared here.
submittable.d.ts(11, 5): The expected type comes from property 'signer' which is declared here on type 'Partial<SignerOptions>'
TarikGul
added
Bug
Tracks issues causing errors or unintended behavior, critical to fix for reliability.
P1 - High
Essential for progress, blocks other tasks. Must be completed soon to maintain project flow.
labels
Dec 3, 2024
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
BugTracks issues causing errors or unintended behavior, critical to fix for reliability.P1 - HighEssential for progress, blocks other tasks. Must be completed soon to maintain project flow.
Hello there, I'm getting the following issue:
It sounds like the
@polkadot/types
that is used in@polkadot/extension-inject
is not compatible with the latest version of@polkadot/types
. E.g, when doing a.signAndSend(account.address, { signer: injector.signer }
I get the following error on the signer:The code is here, it's super simple, and it only happens in this branch where I bumped all deps to the latest: https://github.com/ChainSafe/cypress-polkadot-wallet/blob/tbaut-bump-11-29/packages/example/src/main.ts#L92
The text was updated successfully, but these errors were encountered: