We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 548d39b commit 7510932Copy full SHA for 7510932
Sources/Core/Structure/Block/Block.swift
@@ -11,7 +11,7 @@ import BigInt
11
/// Ethereum Block
12
///
13
/// Official specification: [](https://github.com/ethereum/execution-apis/blob/main/src/schemas/block.json)
14
-public struct Block: Decodable {
+public struct Block {
15
16
public var number: BigUInt // MARK: This is optional in web3js, but required in Ethereum JSON-RPC
17
public var hash: Data // MARK: This is optional in web3js, but required in Ethereum JSON-RPC
@@ -60,7 +60,7 @@ public struct Block: Decodable {
60
}
61
62
63
-extension Block {
+extension Block: Decodable {
64
public init(from decoder: Decoder) throws {
65
let container = try decoder.container(keyedBy: CodingKeys.self)
66
0 commit comments