CannotEndInPast

Error v273 → current 27.3

The end block specified for this crowdloan has already passed. Crowdloans must have a future end block when created.

Encountered by: developers

Why This Error Exists

Crowdloan end blocks must be in the future so contributors have time to participate.

From Chain Metadata

The crowdloan cannot end in the past.

What This Means

The end block specified for this crowdloan has already passed. Crowdloans must have a future end block when created.

Common Causes

  • Using a block number that has already been finalized
  • Calculating end block incorrectly relative to current block height

How to Fix

  • Query System.Number to get the current block height
  • Set the end block to a future block number
  • Add your desired duration to the current block number

Storage to Check

System.Number (removed)Crowdloan.Crowdloans

Runtime Info

Pallet Index
27
Error Index
3
Error Code
27.3
Runtime Version
v393