maurovz / Swift-WalletConnect

Easy iOS Web3 connection for MetaMask, TrustWallet and Rainbow Wallet
Apache License 2.0
60 stars 16 forks source link

loginUser func completion callback fix #3

Closed mehmetdelikaya closed 2 years ago

mehmetdelikaya commented 2 years ago

Hi @maurovz ,

Thanks a lot for the library. I was trying to implement something similar into my project and I have found out that you have implemented this library and easier to integrate rather than walletconnect itself.

I am using your library in my swift project and I have noticed that I don't get the callback to get wallet details after login when I use the snippet below, glaip.loginUser(type: .WalletConnect) { result in print("RESULT == \(result)") }

I have noticed that you don't call completion at success case, and also I had to change first parameter of return result string with User object to access user's wallet data. Later on, I have noticed I still don't get the callback. After my investigation, I had to remove async operation after wallet connect completion received. Everything works well on my side now, feel free to discuss.

Cheers