Skip to content

Commit

Permalink
fix(devnet): set cw genesis contracts to empty vec (#4437)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkast authored Jan 29, 2024
2 parents c11b4ac + 0cc8122 commit f1b6890
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions code/parachain/node/src/chain_spec/picasso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@ pub fn genesis_config(
existential_deposit: Balance,
treasury: AccountId,
) -> picasso_runtime::GenesisConfig {
let contracts =
[option_env!("CW_CVM_OUTPOST_WASM_PATH"), option_env!("CW_CVM_EXECUTOR_WASM_PATH")]
.into_iter()
.flatten()
.map(|path| match std::fs::read(path).map(|bytes| bytes.try_into()) {
Ok(Ok(data)) => data,
Ok(Err(_err)) => panic!("{path}: wasm file is over size limit"),
Err(err) => panic!("{path}: {err}"),
})
.map(|contract| (root.clone(), contract))
.collect();

let cosmwasm = picasso_runtime::CosmwasmConfig { contracts };
let dex = picasso_runtime::PabloConfig {
pools: vec![
(root.clone(), CurrencyId(1), CurrencyId(4)),
Expand Down Expand Up @@ -106,7 +93,7 @@ pub fn genesis_config(
assets: primitives::topology::Picasso::assets(),
phantom: Default::default(),
},
cosmwasm,
cosmwasm: Default::default(),
pablo: dex,

tokens: Default::default(),
Expand Down

0 comments on commit f1b6890

Please sign in to comment.