We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fd922 commit 9133829Copy full SHA for 9133829
state/src/impls/top_level.rs
@@ -460,7 +460,12 @@ impl TopLevelState {
460
Err(error) => Err(error.into()),
461
},
462
Action::CreateShard => {
463
- let shard_creation_cost = 1.into(); // FIXME: Make shard creation cost configurable
+ // FIXME: Make shard creation cost configurable
464
+ #[cfg(test)]
465
+ let shard_creation_cost = 1.into();
466
+ #[cfg(not(test))]
467
+ let shard_creation_cost = U256::max_value();
468
+
469
self.create_shard(&shard_creation_cost, fee_payer)?;
470
Ok(ParcelInvoice::SingleSuccess)
471
}
0 commit comments