Skip to content

Commit

Permalink
Add unknown endpoint transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
virgil-serbanuta committed Nov 8, 2024
1 parent 12bbc6d commit 1092bf4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions byol.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,20 @@

decimals = w3.eth.call(decimals_token_tx)
print('decimals:', decimals)

endpoint_not_found_data = 'deadbeef'

endpoint_not_found_tx = {
'from': sender.address,
'data': endpoint_not_found_data,
'to': token_address,
'value': 0,
'gas': 11000000,
'maxFeePerGas': 2000000000,
'maxPriorityFeePerGas': 1000000000,
}

tx_hash = w3.eth.send_transaction(endpoint_not_found_tx)
print('endpoint not found hash:', tx_hash)
receipt = w3.eth.wait_for_transaction_receipt(tx_hash)
print('mint receipt:', receipt)

0 comments on commit 1092bf4

Please sign in to comment.