From 0eeb66210a891e7adf26882a41d37a1f50193902 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 8 Jan 2025 17:31:57 +0100 Subject: [PATCH] fix(core): remove unused payload parameter in channel [no changelog] --- core/src/trezor/wire/thp/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/trezor/wire/thp/channel.py b/core/src/trezor/wire/thp/channel.py index 75c1b0e2e3..9c103c2699 100644 --- a/core/src/trezor/wire/thp/channel.py +++ b/core/src/trezor/wire/thp/channel.py @@ -408,7 +408,7 @@ class Channel: session_id, ) self.set_channel_state(ChannelState.INVALIDATED) - task = self._write_and_encrypt(buffer, noise_payload_len, force) + task = self._write_and_encrypt(noise_payload_len, force) if task is not None: await task @@ -425,7 +425,7 @@ class Channel: ) def _write_and_encrypt( - self, payload: bytes, noise_payload_len: int, force: bool = False + self, noise_payload_len: int, force: bool = False ) -> Awaitable[None] | None: buffer = memory_manager.get_existing_write_buffer(self.get_channel_id_int()) # if buffer is WireBufferError: