Closed dervisyilm closed 1 year ago
Thanks for your question. Please update your package (right click, update) and add the following to your code
glaip.loginUser(type: .WalletConnect) { result in
switch result {
case .success(let user):
print(user.wallet.address)
case .failure(let error):
print(error)
}
}
thank you, i access public address
I have the same problem, here is my code. Help me please))
let glaip = Glaip(title: "Test", description: "Test descr", supportedWallets: [.MetaMask])
glaip.loginUser(type: .MetaMask) { result in
switch result {
case .success(let user):
print(user.wallet.address)
case .failure:
break
}
}
@eugeniychepelev your problem is that you never get a call back in either success or failure?
@maurovz Yes, in any case, call back does not work
@eugeniychepelev try installing Glaip from this branch: bugfix/self-nil-reference
You can switch to the branch as follow:
Double click here
Change to branch and paste bugfix/self-nil-reference
let me know if that works. If so, I'll merge that branch into main
I added the glaip on my project, and call the loginUser function but, this function callback does not work, I want to access public address glaip.loginUser(type: .WalletConnect) { result in print(result) // not work
} please help me