WalletConnectSwiftV2 icon indicating copy to clipboard operation
WalletConnectSwiftV2 copied to clipboard

deserialization issue in AnyCodable

Open xwal opened this issue 2 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

SDK Version

  • Client: Swift
  • Version All version

To Reproduce Steps to reproduce the behavior:

  1. Go to https://app.rhino.fi/bridge?token=ETH&chainOut=ZETA
  2. Click on Connect Wallet
  3. Sign message
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Connect and sign successful

Screenshots If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

{"id":1707319509457670,"jsonrpc":"2.0","method":"wc_sessionRequest","params":{"request":{"method":"personal_sign","params":["0x546f2070726f7465637420796f7572207268696e6f2e666920707269766163792077652061736b20796f7520746f207369676e20696e207769746820796f75722077616c6c657420746f2073656520796f757220646174612e0a5369676e696e6720696e206f6e205765642c2030372046656220323032342031353a32353a303920474d542e20466f7220796f7572207361666574792c206f6e6c79207369676e2074686973206d657373616765206f6e207268696e6f2e666921","0xfb92a792db359ce2d99cea135761d1dbe3c64ff1",null]},"chainId":"eip155:1"}}

The dApp sended message with above, which contain a null in params, so the params can't be deserialization in AnyCodable.

xwal avatar Feb 07 '24 16:02 xwal