Skip to content

You didn't set gas #2

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),
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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