Skip to content

Dry run issues: insufficient funds for gas * price + value: address xxxxxxxx #197

@UtkarshBhardwaj007

Description

@UtkarshBhardwaj007

Some tests in the project Ethena are failing with insufficient funds for gas * price + value: address xxxxxxxx.

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: insufficient funds for gas * price + value: address 0xbb8a8fe4f12953a5840c6570d5e836079329be46 have 201000000000000000000 (supplied gas None)
      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 HardhatEthersProvider.estimateGas (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:246:27)
      at async Wallet.populateTransaction (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/providers/abstract-signer.ts:106:28)
      at async Wallet.sendTransaction (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/providers/abstract-signer.ts:252:21)
      at async send (/Users/utkarshbhardwaj/Desktop/Projects/scc-testing/ethena-labs/node_modules/ethers/src.ts/contract/contract.ts:313:20)
      at async Proxy.deposit (/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.WETH.test.ts:102:9)

eth-rpc logs

DEBUG tokio-runtime-worker eth-rpc: Dry run failed Static(EthTransactError::Message("insufficient funds for gas * price + value: address 0xbb8a8fe4f12953a5840c6570d5e836079329be46 have 201000000000000000000 (supplied gas None)"))

revive-dev-node logs

DEBUG tokio-runtime-worker runtime::revive: dry_run_eth_transact: GenericTransaction { access_list: None, authorization_list: [], blob_versioned_hashes: [], blobs: [], chain_id: None, from: Some(0xbb8a8fe4f12953a5840c6570d5e836079329be46), gas: None, gas_price: None, input: InputOrData { input: None, data: Some(Bytes(0xd0e30db0)) }, max_fee_per_blob_gas: None, max_fee_per_gas: None, max_priority_fee_per_gas: None, nonce: Some(75), to: Some(0x71118a9c8a1817b2298c8bb52efdc2addca8c139), type: None, value: Some(100000000000000000000) }

Tests failing with this error:

  1. EthenaMinting.WETH.test.ts/testFuzzMintWithWETH
  2. EthenaMinting.WETH.test.ts/test_unsupported_assets_ERC20_revert

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