weishirongzhen / flutter_trust_wallet_core

MIT License
88 stars 33 forks source link

Bitcoin transaction example failed #29

Open sylvestrevgen opened 2 years ago

sylvestrevgen commented 2 years ago

After click Bitcoin transaction example app is crashed and closed. Only when coin is Bitcoin testnet. This result is in example and on my local project.

weishirongzhen commented 2 years ago

any log?

sylvestrevgen commented 2 years ago

I think it was cause in TWCoinType in c++ trust wallet core bitcoin testnet configuration is removed. But in flutter plugin it has.

weixuefeng commented 2 years ago

TWCoinType.TWCoinTypeBitcoinTestnet can not found. only mainnet coinId.

in bitcoin ..example.dart

change

int coin = TWCoinType.TWCoinTypeBitcoinTestnet

to

int coin = TWCoinType.TWCoinTypeBitcoin

can work.