Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add selector for memo type and fix stellar-expert fetch #1211

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ebma
Copy link
Member

@ebma ebma commented Feb 8, 2021

  • Add <MemoSelector> component
  • Add <MemoInput> component which acts similar as the <PriceInput> component. It's basically a TextField that has a memo-selector as a start adornment
  • Show the <MemoInput> field in the payment form
  • Rewrite fetching of stellar-expert known accounts

Instead of fetching all known-accounts in batches and storing them in the cache, I replaced fetchWellKnownAccounts() with fetchWellKnownAccount() which fetches an individual account address from stellar-expert and stores the result in the cache.
Since the lookup() function call may include a fetch it now returns a promise.
The stellar-expert directory API does not differentiate between testnet and pubnet anymore. That's why the cache-key is now called "all" instead of "testnet" or "pubnet".

Closes #1210.

@ebma ebma linked an issue Feb 15, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting memo-type with info of known accounts not working
1 participant