Skip to content

DynamicEIP1559GasProvider.getGasLimit(Transaction transaction) function fails when there is amount validation in contract method #2242

@miadzvedzeu

Description

@miadzvedzeu

Bug_title

DynamicEIP1559GasProvider.getGasLimit(Transaction transaction) function fails when there is amount validation in contract method.
Contract.getGenericTransaction(data, constructor) doesn't set weiValue to transaction.

Steps To Reproduce

Load contract with ClientTransactionManager.
Try to execute contract method which validates amount.
Validation error occurs.

I tried to set amount in debug and the problem has gone.

Expected behavior

Gas limit should be calculated

Actual behavior

Exception is thrown

Environment

  • Web3j versionL 5.0.1.
  • Java or Android version - 21
  • Operating System - MacOS

Additional context

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in behaviour or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions