fuel_core_e2e_client/tests/
contracts.rsuse crate::test_context::TestContext;
use fuel_core_chain_config::ContractConfig;
use libtest_mimic::Failed;
use std::time::Duration;
use tokio::time::timeout;
pub async fn deploy_large_contract(ctx: &TestContext) -> Result<(), Failed> {
let bytecode = if ctx.config.full_test {
vec![0u8; 16 * 1024 * 1024]
} else {
vec![0u8; 1024 * 1024]
};
let mut contract_config = ContractConfig {
contract_id: Default::default(),
code: bytecode,
..Default::default()
};
let salt = Default::default();
contract_config.update_contract_id(salt);
let deployment_request = ctx.bob.deploy_contract(contract_config, salt);
timeout(Duration::from_secs(300), deployment_request).await??;
Ok(())
}