chainlib/chainlib/eth/runnable/checksum.py

16 lines
257 B
Python
Raw Normal View History

2021-02-08 10:39:42 +01:00
# standard imports
import sys
2021-04-14 14:45:37 +02:00
# external imports
from hexathon import strip_0x
2021-02-08 10:39:42 +01:00
# local imports
2021-04-08 17:39:32 +02:00
from chainlib.eth.address import to_checksum_address
2021-02-08 10:39:42 +01:00
2021-04-14 14:45:37 +02:00
def main():
print(to_checksum_address(strip_0x(sys.argv[1])))
2021-04-14 14:45:37 +02:00
2021-02-08 10:39:42 +01:00
2021-04-14 14:45:37 +02:00
if __name__ == '__main__':
main()