forta-network / forta-bot-sdk

Forta Detection Bot SDK and CLI tool
MIT License
71 stars 38 forks source link

Removing console log blocking python fetch jwt #216

Closed Robert-H-Leonard closed 2 years ago

Robert-H-Leonard commented 2 years ago

https://user-images.githubusercontent.com/40375385/194859638-b3b9c195-c5c7-4a81-b826-4f0d7da6f496.mov

Verified python bot is able to fetch a JWT. Here is the bot code used:

def handle_block(block_event):

    decoded = fetch_Jwt({})
    print('Decoded jwt is {decoded}'.format(decoded=decoded))

    # logging.debug('Is valid Jwt? {isValid}'.format(verify_Jwt(token)))

    return []