Skip to content

Commit e0303e3

Browse files
committed
revert ticket changes (test vector not updated yet)
1 parent 737b1e7 commit e0303e3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Blockchain/Sources/Blockchain/Types/Ticket.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
import Codec
21
import Utils
32

4-
public struct Ticket: @unchecked Sendable, Equatable, Codable {
3+
public struct Ticket: Sendable, Equatable, Codable {
54
// y
65
public var id: Data32
76
// r
8-
@CodingAs<Compact<TicketIndex>> public var attempt: TicketIndex
9-
10-
public static func == (lhs: Ticket, rhs: Ticket) -> Bool {
11-
lhs.id == rhs.id && lhs.attempt == rhs.attempt
12-
}
7+
public var attempt: TicketIndex
138
}
149

1510
extension Ticket: Dummy {

0 commit comments

Comments
 (0)