Closed Mindsetter closed 4 months ago
Issue resolved
Hello! I suppose it could have been the chainId (chainId: 'eip155: ${w3mService!.session!.chainId}'
), right?
Since the sign request function in the documentation was not working for me I checked the example folder and refactored my code
static Future<dynamic> personalSign({
required W3MService w3mService,
required String message,
}) async {
w3mService.launchConnectedWallet();
return await w3mService.request(
topic: w3mService.session!.topic,
chainId: w3mService.selectedChain!.chainId,
request: SessionRequestParams(
method: 'personal_sign',
params: [
message,
w3mService.session!.address!,
],
),
);
}
Describe the bug After calling the signMessage() it launches the current wallet but fails to show up the request prompt
Meaningful logs I was able to print() the chainID and the Wallet Address without any issue
Version: web3modal_flutter: ^3.2.2