Giter Site home page Giter Site logo

Comments (7)

lzhuor avatar lzhuor commented on June 27, 2024 3

Thank you @plondon!

The workaround works for me. I will take a look at the code snippet to understand the root cause.

Btw, this react + redux (and saga) front-end project is awesome. I learned quite a few good points such as using monorepo, using ramda, using lense etc. Lesson learned.

from blockchain-wallet-v4-frontend.

plondon avatar plondon commented on June 27, 2024 2

Hi at @lzhuor thank you so much for using the wallet and contributing an issue!

The v4 wallet does not yet support testnet, we've looked into it a little bit but have not had sufficient time to fully implement it. I believe the crux of the issue is here: https://github.com/blockchain/blockchain-wallet-v4-frontend/blame/development/packages/blockchain-wallet-v4/src/types/Wrapper.js#L157. Where the wallet is created but the network is not passed in.

We have some more work to do around network configurations, but this is definitely on the todo list! In the meantime, if its a testnet wallet you need you can use https://testnet.blockchain.info/wallet/#/login.

Actually, you may be able to create a testnet wallet there and then use it with the v4 config you have, since it may just be the creation of the wallet that is incorrect.

Best
Phil

from blockchain-wallet-v4-frontend.

lzhuor avatar lzhuor commented on June 27, 2024

Hi folks, I tried to fix the above problem in #803.

After the fix, in debug mode, I can see network is passed all the way down. However, I am getting below error after wallet creation:
image

The error was thrown from kvStore/index.js during calling GET https://api-testnet.blockchain.info/metadata/1CH6gsibWwGqTTZYZ6cEuMKMTwJL1Wvfsq

const fetchKVStore = kv => {
    let setKvFromResponse = curry((currentKv, res) => {
      if (res === null) return set(KV.value, null, currentKv)
      let setFromResponse = compose(
        set(KV.magicHash, prop('compute_new_magic_hash', res)),
        set(KV.value, KV.extractResponse(kv.encKeyBuffer, res))
      )
      return setFromResponse(currentKv)
    })

    return request('GET', kv.address)
      .map(KV.verifyResponse(kv.address))
      .chain(eitherToTask)
      .map(setKvFromResponse(kv))
      .rejectedMap(e => {
        console.error(
          `Failed to fetch metadata entry ${kv.typeId} at ${kv.address}:`,
          e
        )
        return new Error('METADATA_FETCH_FAILED')
      })
  }

Do you have an idea about the cause? Thank you for your time! ❀️

from blockchain-wallet-v4-frontend.

plondon avatar plondon commented on June 27, 2024

@lzhuor first of all, thank you so so much for your contribution. I or someone on the team will surely find time this week to make a more comprehensive review. For now to ensure you're not stuck I noticed that https://api-testnet.blockchain.info/metadata/**1CH6gsibWwGqTTZYZ6cEuMKMTwJL1Wvfsq** is not a testnet address. metadata will check this and fail because of that most likely.

from blockchain-wallet-v4-frontend.

plondon avatar plondon commented on June 27, 2024

Compare the response to curl 'https://api-testnet.blockchain.info/metadata/mp3jyzMgYJhnmCuTsXpRbh78YZo1jajA6S' -H 'pragma: no-cache' -H 'origin: https://testnet.blockchain.info' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'content-type: application/json' -H 'accept: */*' -H 'cache-control: no-cache' -H 'authority: api-testnet.blockchain.info' -H 'referer: https://testnet.blockchain.info/wallet/' -H 'dnt: 1' --compressed

from blockchain-wallet-v4-frontend.

lzhuor avatar lzhuor commented on June 27, 2024

Thank you @plondon ! I will continue from above hint.

from blockchain-wallet-v4-frontend.

plondon avatar plondon commented on June 27, 2024

Bitcoin testnet wallet available here: #874

from blockchain-wallet-v4-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.