Description
Context
Although useConnex was removed in VeChain Kit V2, several transaction and blockchain hooks still incorrectly reference types from the deprecated Connex library.
Description
Update the TypeScript type definitions for key hooks (useSendTransaction, useCurrentBlock, useTxReceipt) to remove references to Connex.Thor.* types and align them with the new SDK-based APIs.
Severity
Medium (Confusing for developers; reduces strong type safety in V2).
Reproduction steps
1. Observe the return types of useSendTransaction, useCurrentBlock, and useTxReceipt.
2. Note that these types still point to Connex.Thor.Transaction.Receipt or similar Connex types.
Kit Version
2
Connection Details Screenshot
No response
Description
Context
Although useConnex was removed in VeChain Kit V2, several transaction and blockchain hooks still incorrectly reference types from the deprecated Connex library.
Description
Update the TypeScript type definitions for key hooks (useSendTransaction, useCurrentBlock, useTxReceipt) to remove references to Connex.Thor.* types and align them with the new SDK-based APIs.
Severity
Medium (Confusing for developers; reduces strong type safety in V2).
Reproduction steps
1. Observe the return types of useSendTransaction, useCurrentBlock, and useTxReceipt. 2. Note that these types still point to Connex.Thor.Transaction.Receipt or similar Connex types.Kit Version
2
Connection Details Screenshot
No response