RootSoft / walletconnect-dart-sdk

Open protocol for connecting dApps to mobile wallets with QR code scanning or deep linking.
MIT License
104 stars 61 forks source link

Fix `personal_sign` generates wrong signature #95

Open HaoCherHong opened 1 year ago

HaoCherHong commented 1 year ago

According to this walletconnect protocal doc, correct order of params is [message, address] instead of [address, message]. And there is no password parameter.

This error only occurs in certain wallet app because some apps like MetaMask and ImToken handles the params in both order.

Close #80

Changes

fix personal_sign params order