gnoverse / dsocial

Experimental: Social apps, tools, researchs and dApps on Gno.land
8 stars 4 forks source link

Exchanging messages with Gnokey Mobile #133

Closed iuricmp closed 1 week ago

iuricmp commented 3 weeks ago

How to test:

  1. Open dSocial and Gnokey mobile
  2. Create accounts in both of them
  3. Try to Post a message using dSocial
  4. After pressing the Post button, dSocial will open Gnokey Mobile and expect you select a key to proceed.
  5. After selecting a key in Gnokey, it will navigate back do dSocial.
  6. dSocial will receive the key address you selected and will use it to create a unsigned transaction.
  7. The unsigned transaction will be sent to Gnokey to be signed.
  8. Gnokey requires you to select a key to sign the transaction. Use the same key you selected before.
  9. The signed transaction is sent back to dSocial.
  10. dSocial will broadcast the transaction to be inserted in the blockchain.
jefft0 commented 1 week ago

I pushed a commit to fix the Following bug. user.address.toString() should be user.bech32, on this line: https://github.com/gnolang/dsocial/blob/inter-app-communication/mobile/components/view/account/index.tsx#L64

https://github.com/gnolang/dsocial/pull/133/commits/2daa7f9f751a45be14cfcad96fea1d9d02ae77b2

iuricmp commented 1 week ago

That’s it.