@@ -857,7 +857,7 @@ func TestProofOfExpiryOneLeaf(t *testing.T) {
857857
858858 leaf := root .(* InternalNode ).children [0 ].(* LeafNode )
859859
860- expiredLeaf := NewExpiredLeafNode (leaf .stem , leaf .commitment )
860+ expiredLeaf := NewExpiredLeafNode (leaf .stem , leaf .lastPeriod , leaf . commitment )
861861 expiredLeaf .setDepth (1 )
862862 root .(* InternalNode ).children [0 ] = expiredLeaf
863863
@@ -904,12 +904,12 @@ func TestProofOfExpiryMultipleLeaves(t *testing.T) {
904904 init := root .Commit ()
905905
906906 leaf0 := root .(* InternalNode ).children [0 ].(* LeafNode )
907- expiredLeaf0 := NewExpiredLeafNode (leaf0 .stem , leaf0 .commitment )
907+ expiredLeaf0 := NewExpiredLeafNode (leaf0 .stem , leaf0 .lastPeriod , leaf0 . commitment )
908908 expiredLeaf0 .setDepth (1 )
909909 root .(* InternalNode ).children [0 ] = expiredLeaf0
910910
911911 leaff := root .(* InternalNode ).children [255 ].(* LeafNode )
912- expiredLeaff := NewExpiredLeafNode (leaff .stem , leaff .commitment )
912+ expiredLeaff := NewExpiredLeafNode (leaff .stem , leaff .lastPeriod , leaff . commitment )
913913 expiredLeaff .setDepth (1 )
914914 root .(* InternalNode ).children [255 ] = expiredLeaff
915915
@@ -1201,7 +1201,7 @@ func TestProofVerificationPreStateExpiredPostStateResurrected(t *testing.T) {
12011201 rootC := preRoot .Commit ()
12021202
12031203 leaf := preRoot .(* InternalNode ).children [0 ].(* LeafNode )
1204- expiredLeaf := NewExpiredLeafNode (leaf .stem , leaf .commitment )
1204+ expiredLeaf := NewExpiredLeafNode (leaf .stem , leaf .lastPeriod , leaf . commitment )
12051205 expiredLeaf .setDepth (1 )
12061206 preRoot .(* InternalNode ).children [0 ] = expiredLeaf
12071207
0 commit comments