Skip to content

Conversation

@bee344
Copy link

@bee344 bee344 commented Nov 19, 2025

Description

Uploading factory deps fails because @parity/hardhat-polkadot uses Alice to upload the required bytecode. But since there is no balance allocated to Alice's substrate account, the tx fails due to insufficient funds.

@alindima
Copy link

This is not needed. The recommended way is to use the CLI config (and bundle this into hardhat-polkadot):

anvil-polkadot --init genesis.json

The genesis.json file can contain this:

{
  "alloc": {
    "f24ff3a9cf04c71dbc94d0b566f7a27b94566cac": {
      "balance": "0x1bc16d674ec80000"
    }
  }
}

That address is the one corresponding to alith

@bee344
Copy link
Author

bee344 commented Nov 19, 2025

This is not needed. The recommended way is to use the CLI config (and bundle this into hardhat-polkadot):

anvil-polkadot --init genesis.json

The genesis.json file can contain this:

{
  "alloc": {
    "f24ff3a9cf04c71dbc94d0b566f7a27b94566cac": {
      "balance": "0x1bc16d674ec80000"
    }
  }
}

That address is the one corresponding to alith

But this alters teh ETH value, right? I need to update the allocated DOT value for the substrate accounts.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants