Skip to content

Support NWC Primal Wallet specific behavior #158

@anipy1

Description

@anipy1

When attempting to connect to Primal Wallet using NWC, the connection fails with the error "get_info method not in permissions". This issue specifically occurs with the Primal wallet implementation while other wallets work as expected.

Error Details

Exception: get_info method not in permissions
Stack Trace:

#0 Nwc.executeRequest (package:ndk/domain_layer/usecases/nwc/nwc.dart:281:5)
#1 Nwc.getInfo (package:ndk/domain_layer/usecases/nwc/nwc.dart:286:12)
#2 NWCWalletCubit.getInfo (package:bringin_payments_app/bloc/nwc_account/nwc_wallet_cubit.dart:142:33)
#3 NWCWalletCubit.sync (package:bringin_payments_app/bloc/nwc_account/nwc_wallet_cubit.dart:131:13)

Test Connection String

nostr+walletconnect://1291af9c119879ef7a59636432c6e06a7a058c0cae80db27c0f20f61f3734e52?relay=wss%3A%2F%2Fnwc.primal.net%2Fw4l7fukv9gd5p55xyod7qbnw6x5owu&secret=23555194d5a211bb0fa0714874df2f87ceca3d878a614db904e61de29c0bb127

The same connection string works successfully with the NWC tester tool (https://supertestnet.github.io/nwc_tester/) but not with NDK package code

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions