We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38284e6 commit 77bce51Copy full SHA for 77bce51
module/prover.go
@@ -241,8 +241,8 @@ func (pr *Prover) buildInitialState(dstHeader core.Header) (exported.ClientState
241
// Last ForkSpec must have height or CreateClient is less than fork spec timestamp
242
forkSpecs := pr.getForkParameters()
243
lastForkSpec := forkSpecs[len(forkSpecs)-1]
244
- lastForkSpecTime := lastForkSpec.GetHeightOrTimestamp().(*ForkSpec_Timestamp)
245
- if lastForkSpecTime != nil {
+ lastForkSpecTime, ok := lastForkSpec.GetHeightOrTimestamp().(*ForkSpec_Timestamp)
+ if ok && lastForkSpecTime != nil {
246
target, err := dstHeader.(*Header).Target()
247
if err != nil {
248
return nil, nil, err
0 commit comments