Skip to content

馃悰 [BUG] - V2 Hooks Return Deprecated Connex Types#465

Description

@victhorbi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions