Skip to content

Commit d3435ba

Browse files
Merge branch 'get-block-with-txs' into feat/239-tip-auto-estimation
2 parents 9047264 + 61805c0 commit d3435ba

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Sources/Starknet/Data/StarknetBlockId.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,7 @@ import Foundation
33
public enum StarknetBlockId: Equatable {
44
public enum BlockTag: String, Codable {
55
case latest
6-
case preConfirmed
7-
8-
public func encode(to encoder: Encoder) throws {
9-
var container = encoder.singleValueContainer()
10-
11-
switch self {
12-
case .latest:
13-
try container.encode("latest")
14-
case .preConfirmed:
15-
try container.encode("pre_confirmed")
16-
}
17-
}
6+
case preConfirmed = "pre_confirmed"
187
}
198

209
case hash(Felt)

0 commit comments

Comments
 (0)