Skip to content

Commit

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

balance = w3.eth.call(balanceOf_token_tx)
print('balance:', balance)

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

decimals_token_data2 = '313ce567'
decimals_token_tx['data'] = decimals_token_data2

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

0 comments on commit 12bbc6d

Please sign in to comment.