Skip to content

You didn't set gas #2

@p-i-

Description

@p-i-

I was getting:

web3.exceptions.ContractLogicError: execution reverted: TransferHelper: TRANSFER_FROM_FAILED

on BUNNY -> WETH

Adding gas fixed it:

).buildTransaction({
    'from': config.MY_WALLET_ADDRESS,
    'gas': 250000,
    'gasPrice': web3.toWei('5','gwei'),
    'nonce': web3.eth.get_transaction_count(config.MY_WALLET_ADDRESS),
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions