Skip to content

Trust Wallet not connected through useConnect() and useCreateWalletInstance() #2462

@TahaKhanAbdalli

Description

@TahaKhanAbdalli

I'm facing an issue where Trust Wallet doesn't connect when using the useConnect or useCreateWalletInstance methods. Strangely, it works perfectly fine when I attempt to connect through the ConnectWallet button. However, I can't use that button because I'm relying on the wallet dropdown, where I need to connect the selected wallet. While other wallets connect successfully, Trust Wallet's configuration doesn't provide any feedback or errors.

Using useConnect():

const connect = useConnect();
const config = trustWallet({
projectId: "57e1cfc18509bb9cc4d51638ce8d18ed",
recommended: true
})
await connect(config, {chainId: 1});

Using useCreateWalletInstance()

const config = trustWallet({
            projectId: "57e1cfc18509bb9cc4d51638ce8d18ed",
            recommended: true
          })
const createWalletInstance = useCreateWalletInstance();
const response = createWalletInstance(config);
await response.connect();
Screenshot 2024-03-13 at 12 11 52 AM

Metadata

Metadata

Assignees

Labels

Won't FixThis will not be worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions