diff --git a/electrum/plugins/keepkey/clientbase.py b/electrum/plugins/keepkey/clientbase.py index 67e7b78d6..5fa2339d7 100644 --- a/electrum/plugins/keepkey/clientbase.py +++ b/electrum/plugins/keepkey/clientbase.py @@ -162,6 +162,9 @@ class KeepKeyClientBase(HardwareClientBase, GuiMixin, Logger): self.transport.write(self.proto.Cancel()) def i4b(self, x): + if x < 0: + # hack. workaround for https://github.com/spesmilo/electrum/issues/7779 + x += 2 ** 32 return pack('>I', x) @runs_in_hwd_thread