From 0ad693fe5fcd02886a21d4cd438c062455d90848 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 14:38:11 +0000 Subject: [PATCH] style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf This commit fixes the style issues introduced in c635fff according to the output from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf. Details: None --- blockchain/wallet.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blockchain/wallet.py b/blockchain/wallet.py index 0435c425d..b23d52db9 100644 --- a/blockchain/wallet.py +++ b/blockchain/wallet.py @@ -1,13 +1,14 @@ import hashlib import time + class Wallet: def __init__(self): - self.private_key = hashlib.sha256(str(time.time()).encode('utf-8')).hexdigest() - self.public_key = hashlib.sha256(self.private_key.encode('utf-8')).hexdigest() + self.private_key = hashlib.sha256(str(time.time()).encode("utf-8")).hexdigest() + self.public_key = hashlib.sha256(self.private_key.encode("utf-8")).hexdigest() def generate_address(self): - return hashlib.sha256(self.public_key.encode('utf-8')).hexdigest() + return hashlib.sha256(self.public_key.encode("utf-8")).hexdigest() def send_transaction(self, recipient, amount): transaction = Transaction(self.generate_address(), recipient, amount)