Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
federicociro committed May 12, 2024
1 parent 81df6b3 commit 90c4bc4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions grouphug.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

load_dotenv()

async def handle_transaction(
update: Update, context: ContextTypes.DEFAULT_TYPE
-> None:
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
await update.message.reply_text("Send me a Bitcoin transaction in raw format")

async def handle_transaction(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
Expand Down Expand Up @@ -44,7 +42,7 @@ async def send_to_server(message):

def validate_transaction(tx_raw):
# Strip and remove all spaces
tx_raw = tx_raw.strip().replace(' ', '')
#tx_raw = tx_raw.strip().replace(' ', '')

# Check if all characters are valid hexadecimal
if any(c not in "0123456789abcdefABCDEF" for c in tx_raw):
Expand Down

0 comments on commit 90c4bc4

Please sign in to comment.