Fix MetaMask Detection and Provider Handling for get-starknet
This PR fixes the detection and handling of the MetaMask provider in the get-starknet v4 integration, following the same strategy as in the get-starknet v3 implementation: provider logic detection happens in the metaMaskVirtualWallet.ts.
The hasSupport methods detects the provider and sets it as provider attribute in the object, so that when loading the wallet the provider does not need to be fetched again. If the provider is not set when loading then we try to load it again.
This PR is required to finalise the get-starknet v4 implementation on the StarkNet Snap.
Fix MetaMask Detection and Provider Handling for get-starknet
This PR fixes the detection and handling of the MetaMask provider in the
get-starknet v4
integration, following the same strategy as in theget-starknet v3
implementation: provider logic detection happens in themetaMaskVirtualWallet.ts
.The
hasSupport
methods detects the provider and sets it as provider attribute in theobject
, so that when loading the wallet theprovider
does not need to be fetched again. If the provider is not set when loading then we try to load it again.This PR is required to finalise the
get-starknet v4
implementation on theStarkNet Snap
.