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
When the provider is passed a network type of "testnet-staging", the kit incorrectly falls back to "test" instead of throwing an error or failing validation as expected. The kit should reject unsupported network types rather than silently defaulting to a different value.
Reproduction URL
No response
Reproduction steps
1. Locate your implementation of `VechainKitProvider`in your codebase.
2. Pass a custom network type (e.g., `"testnet-staging"`) and cast it to `NETWORK_TYPE`, as shown below:
<VechainKitProvider
network={{
type: "testnet-staging" as NETWORK_TYPE,
}}
>
{/* Your app components */}
</VechainKitProvider>
3. Observe that the VeChain kit does not throw an error or fail validation.
4. Instead, the kit incorrectly falls back to the `"test"` network when it should reject unsupported network types.
Screenshots
Logs
OS
No response
The text was updated successfully, but these errors were encountered:
Description
When the provider is passed a network type of
"testnet-staging"
, the kit incorrectly falls back to"test"
instead of throwing an error or failing validation as expected. The kit should reject unsupported network types rather than silently defaulting to a different value.Reproduction URL
No response
Reproduction steps
Screenshots
Logs
OS
No response
The text was updated successfully, but these errors were encountered: