Skip to content

having an error print(transaction) #1432

Answered by MananJain2002
Cpadilla229 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, as the error says "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/web3/eth.py:656: UserWarning: There was an issue with the method eth_maxPriorityFeePerGas. Calculating using eth_feeHistory."
just need to add gasPrice in transaction and it will fix it.

transaction = SimpleStorage.constructor().buildTransaction(
    {
        "chainId": chain_id,
        "gasPrice": w3.eth.gas_price,
        "from": my_address,
        "nonce": nonce,
    }
)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Cpadilla229
Comment options

Answer selected by cromewar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants