From 4b62dee8e6c332a2f7c1c136a1f96df94b0001e3 Mon Sep 17 00:00:00 2001 From: Hao-Cher Hong Date: Wed, 11 Jan 2023 16:12:04 +0800 Subject: [PATCH 1/2] fix personal_sign params order --- lib/src/providers/ethereum_walletconnect_provider.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/providers/ethereum_walletconnect_provider.dart b/lib/src/providers/ethereum_walletconnect_provider.dart index 858d590..e7c0b14 100644 --- a/lib/src/providers/ethereum_walletconnect_provider.dart +++ b/lib/src/providers/ethereum_walletconnect_provider.dart @@ -42,11 +42,10 @@ class EthereumWalletConnectProvider extends WalletConnectProvider { Future personalSign({ required String message, required String address, - required String password, }) async { final result = await connector.sendCustomRequest( method: 'personal_sign', - params: [address, message, password], + params: [message, address], ); return result; From abc70c5c2c339a3e806568eb8c0125ced78e7bf8 Mon Sep 17 00:00:00 2001 From: Hao-Cher Hong Date: Wed, 11 Jan 2023 19:36:27 +0800 Subject: [PATCH 2/2] update doc --- lib/src/providers/ethereum_walletconnect_provider.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/providers/ethereum_walletconnect_provider.dart b/lib/src/providers/ethereum_walletconnect_provider.dart index e7c0b14..78b3e97 100644 --- a/lib/src/providers/ethereum_walletconnect_provider.dart +++ b/lib/src/providers/ethereum_walletconnect_provider.dart @@ -34,9 +34,8 @@ class EthereumWalletConnectProvider extends WalletConnectProvider { } /// Signs method calculates an Ethereum specific signature. - /// [address] - 20B address /// [message] - message to sign - /// [password] - The password of the account to sign data with + /// [address] - 20B address /// /// Returns signature. Future personalSign({