So I have successfully used the function decode_function_input(txn.input)
to decode the input data for most transactions except for contract creation input data. Is there a simple and straightforward way to achieve this for contract creation using web3.py?
The hash in 'event' is not a contract creation hash, however, it seems not to work as well. Any insight to get around this would be appreciated.
Method tried:
event = "0x1113a21473aa89fcce64835d267dd480c9f0339411c676b1f22f11ae8e876b63"
txn = web3.eth.get_transaction(event)
txnInput = routerContract.decode_function_input(txn.input)