Comments (7)
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.
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.
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:
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.
@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.
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.
Thank you @plondon ! I will continue from above hint.
from blockchain-wallet-v4-frontend.
Bitcoin testnet wallet available here: #874
from blockchain-wallet-v4-frontend.
Related Issues (20)
- 1488800
- 1488800
- 1488800
- 1488800
- 1488800
- 1488800
- 1488800
- 1488800
- 1488800
- TypeError: Cannot read properties of undefined (reading 'current') at Transactions_selectors_getData when trying to access BTC portfolio HOT 2
- Has anyone else received these emails
- is good? HOT 1
- I guess I am plagered and I hear perhaps under attack. Cyber bully's STOP! . HOT 1
- 12 WORD SEED PHRASE NOT ACCEPTED ON BLOCKCHAIN.COM WALLET ALTHOUGH ITS CORRECT
- USDT
- I AM UNABLE TO TRANSFER BTC FROM MY TRADING ACCOUNT TO ANOTHER BITCOIN WALLET HOT 3
- Blockchain seperti taikπ€£π€£βοΈ
- Tg
- ![Logo](https://cdn.ast.checkmarx.net/integrations/logo/Checkmarx.png)
- King
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blockchain-wallet-v4-frontend.