Skip to content

Invalid Transaction - Gas Estimation Issues #196

@UtkarshBhardwaj007

Description

@UtkarshBhardwaj007

A lot of tests in the project Ethena are failing with Invalid Transaction.

Steps to Reproduce

  • Clone the repo
  • cd ethena-labs
  • npm i
  • Update hardhat.config.ts with your binary paths
  • Nodes build: nodes-18323842311
  • Harhat version -> "@parity/hardhat-polkadot": "0.2.0-pre2"

Terminal 1

RUST_LOG="info,eth-rpc=debug" ./bin/mac/eth-rpc --dev --node-rpc-url ws://localhost:9944

Terminal 2

RUST_LOG="error,evm=debug,sc_rpc_server=info,runtime::revive=debug" ./bin/mac/revive-dev-node --dev

Terminal 3

npx hardhat test test/minting/tests/<test-file-name> --network localNode --grep "<test-name>"

Logs

Test logs

ProviderError: Invalid Transaction
      at HttpProvider.request (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/hardhat/src/internal/core/providers/http.ts:116:21)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async Promise.all (index 0)
      at async HardhatEthersProvider.broadcastTransaction (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:275:33)
      at async Wallet.sendTransaction (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/providers/abstract-signer.ts:255:16)
      at async send (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/contract/contract.ts:313:20)
      at async Proxy.mint (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/contract/contract.ts:352:16)
      at async Context.<anonymous> (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/test/minting/tests/EthenaMinting.blockLimits.test.ts:212:24)

eth-rpc logs

DEBUG tokio-runtime-worker eth-rpc: submit call failed: SubxtError(Rpc(ClientError(User(UserError { code: 1010, message: "Invalid Transaction", data: Some(RawValue("Inability to pay some fees (e.g. account balance too low)")) }))))

revive-dev-node logs

DEBUG tokio-runtime-worker runtime::revive: Not enough gas supplied to cover base and len fee. eth_fee=9877240 fixed_fee=83108157000

Tests failing with this error:

  1. EthenaMinting.blockLimits.test.ts/test_multiple_mints
  2. EthenaMinting.blockLimits.test.ts/test_fuzz_mint_maxMint_perBlock_exceeded_revert
  3. EthenaMinting.blockLimits.test.ts/test_fuzz_nextBlock_mint_is_zero
  4. EthenaMinting.blockLimits.test.ts/test_multiple_redeem
  5. EthenaMinting.blockLimits.test.ts/test_fuzz_maxRedeem_perBlock_exceeded_revert
  6. EthenaMinting.blockLimits.test.ts/test_fuzz_nextBlock_redeem_is_zero
  7. EthenaMinting.core.test.ts/test_redeem
  8. EthenaMinting.core.test.ts/test_redeem_invalidNonce_revert
  9. EthenaMinting.core.test.ts/test_sending_redeem_order_to_mint_revert
  10. EthenaMinting.WETH.test.ts/test_redeem
  11. EthenaMinting.WETH.test.ts/test_redeem_invalidNonce_revert
  12. EthenaMinting.WETH.test.ts/test_sending_redeem_order_to_mint_revert
  13. EthenaMinting.Delegate.test.ts/testDelegateSuccessfulRedeem
  14. EthenaMinting.Delegate.test.ts/testDelegateFailureRedeem
  15. EthenaMinting.ACL.test.ts/test_redeem_notRedeemer_revert
  16. EthenaMinting.ACL.test.ts/test_gatekeeper_cannot_enable_redeem_revert
  17. EthenaMinting.ACL.test.ts/test_admin_can_disable_redeem
  18. EthenaMinting.ACL.test.ts/test_admin_can_enable_redeem

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions