Browse Source

Fixes #21. Incorrect display of bech32

zcash_overwinter
Raulo 7 years ago
parent
commit
27e581a783
  1. 4
      src/main.c

4
src/main.c

@ -2200,11 +2200,11 @@ uint8_t prepare_full_output(uint8_t checkOnly) {
unsigned char address[22];
unsigned short version;
unsigned char isNativeSegwit;
isNativeSegwit = btchip_output_script_is_native_witness(
btchip_context_D.currentOutput + offset);
btchip_swap_bytes(amount,
btchip_context_D.currentOutput + offset, 8);
offset += 8;
isNativeSegwit = btchip_output_script_is_native_witness(
btchip_context_D.currentOutput + offset);
if (!isNativeSegwit) {
if (btchip_output_script_is_regular(
btchip_context_D.currentOutput + offset)) {

Loading…
Cancel
Save