Skip to content

Commit

Permalink
fix typo (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Jan 21, 2025
1 parent e839513 commit 65a0f46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RPC/Sources/RPC/Handlers/ChainHandlers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ public enum ChainHandlers {
public static let handlers: [any RPCHandler.Type] = [
GetBlock.self,
GetBlockHash.self,
GetFinalziedHead.self,
GetFinalizedHead.self,
GetHeader.self,
]

public static func getHandlers(source: ChainDataSource) -> [any RPCHandler] {
[
GetBlock(source: source),
GetBlockHash(source: source),
GetFinalziedHead(source: source),
GetFinalizedHead(source: source),
GetHeader(source: source),
]
}
Expand Down Expand Up @@ -64,11 +64,11 @@ public enum ChainHandlers {
}
}

public struct GetFinalziedHead: RPCHandler {
public struct GetFinalizedHead: RPCHandler {
public typealias Request = VoidRequest
public typealias Response = Data32?

public static var method: String { "chain_getFinalziedHead" }
public static var method: String { "chain_getFinalizedHead" }
public static var summary: String? { "Get hash of the last finalized block in the canon chain." }

private let source: ChainDataSource
Expand Down

0 comments on commit 65a0f46

Please sign in to comment.