Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #267

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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),

Check warning on line 18 in RPC/Sources/RPC/Handlers/ChainHandlers.swift

View check run for this annotation

Codecov / codecov/patch

RPC/Sources/RPC/Handlers/ChainHandlers.swift#L18

Added line #L18 was not covered by tests
GetHeader(source: source),
]
}
Expand Down Expand Up @@ -64,11 +64,11 @@
}
}

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" }

Check warning on line 71 in RPC/Sources/RPC/Handlers/ChainHandlers.swift

View check run for this annotation

Codecov / codecov/patch

RPC/Sources/RPC/Handlers/ChainHandlers.swift#L71

Added line #L71 was not covered by tests
public static var summary: String? { "Get hash of the last finalized block in the canon chain." }

private let source: ChainDataSource
Expand Down