# Not enough resources to fit the target

**URL:** <https://forum.fuel.network/t/not-enough-resources-to-fit-the-target/2291>\
**Category:** Rust SDK\
**Created:** [April 10, 2023, 7:58am UTC](https://forum.fuel.network/t/not-enough-resources-to-fit-the-target/2291 "2023-04-10T07:58:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buddy-brontosaurus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/buddy-brontosaurus/32/1055_2.png) [@buddy-brontosaurus](https://forum.fuel.network/u/buddy-brontosaurus)\
**Post date:** [April 10, 2023, 7:58am UTC](https://forum.fuel.network/t/not-enough-resources-to-fit-the-target/2291/1 "2023-04-10T07:58:29Z")

</div>

Getting

```auto
thread 'can_get_contract_id' panicked at 'called `Result::unwrap()` on an `Err` value: ProviderError("Provider error: Response errors; not enough resources to fit the target")', packages/voting_vault/tests/harness.rs:46:6

```

when deploying a contract.

```plaintext

// Load abi from json
abigen!(
    Contract(
        name = "VotingVault",
        abi = "packages/voting_vault/out/debug/voting_vault-abi.json"
    ),
);

pub const TOKEN_A: AssetId = AssetId::new([1u8; 32]);

async fn get_wallets() -> Vec<WalletUnlocked> {
    let assets = vec![AssetConfig {
        id: TOKEN_A,
        num_coins: 1,
        coin_amount: 10_000_000_000 * 10u64.pow(9),
    }];
    let wallet_config = WalletsConfig::new_multiple_assets(1, assets);
    let wallets = launch_custom_provider_and_get_wallets(wallet_config, None, None).await;
    wallets
}

async fn setup() {
    let mut wallets = get_wallets().await;
    let wallet = wallets.pop().unwrap();

    let voting_vault_id = Contract::deploy(
        "./out/debug/voting_vault.bin",
        &wallet,
        DeployConfiguration::default()
    )
    .await
    .unwrap();

    println!("Contract deployed @ {voting_vault_id}");
}
zzz
```

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sarah/32/13_2.png) [@sarah](https://forum.fuel.network/u/sarah)\
**Post date:** [April 10, 2023, 3:14pm UTC](https://forum.fuel.network/t/not-enough-resources-to-fit-the-target/2291/2 "2023-04-10T15:14:23Z")

</div>

The wallet that deploys must be funded with some of the base asset as well (0 address). If you change `AssetId::new([1u8; 32])` to `AssetId::new([0u8; 32])` it should work.
