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

switch to useLcdClient after it supports static wallet #3

Open
eng4753 opened this issue Jun 13, 2023 · 0 comments
Open

switch to useLcdClient after it supports static wallet #3

eng4753 opened this issue Jun 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@eng4753
Copy link
Collaborator

eng4753 commented Jun 13, 2023

currently useLcdClient() hook from wallet-kit can only be called when wallet is connected, we used to have a static wallet from the old wallet-provider library to use when user didn't connect the wallet on the app, but it's no longer available, so in order to display dummy data we need to set LCD manually

setLcd(LCDClient({
    [CHAIN_ID]: {
      lcd: LCD_ENDPOINT,
      chainID: CHAIN_ID,
      gasAdjustment: 3.5,
      gasPrices: { [CHAIN_DENOM]: 0.015 },
      prefix: CHAIN_PREFIX, // bech32 prefix, used by the LCD to understand which is the right chain to query
    },
  }))

Ideally we can just use useLcdClient()

@eng4753 eng4753 changed the title switch to useLcdClient after it supports static wallet [improvement] switch to useLcdClient after it supports static wallet Jul 2, 2023
@eng4753 eng4753 added the enhancement New feature or request label Jul 5, 2023
@eng4753 eng4753 changed the title [improvement] switch to useLcdClient after it supports static wallet switch to useLcdClient after it supports static wallet Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant