Skip to content

Commit 7510932

Browse files
Refactor Block a bit
1 parent 548d39b commit 7510932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Core/Structure/Block/Block.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import BigInt
1111
/// Ethereum Block
1212
///
1313
/// Official specification: [](https://github.com/ethereum/execution-apis/blob/main/src/schemas/block.json)
14-
public struct Block: Decodable {
14+
public struct Block {
1515

1616
public var number: BigUInt // MARK: This is optional in web3js, but required in Ethereum JSON-RPC
1717
public var hash: Data // MARK: This is optional in web3js, but required in Ethereum JSON-RPC
@@ -60,7 +60,7 @@ public struct Block: Decodable {
6060
}
6161
}
6262

63-
extension Block {
63+
extension Block: Decodable {
6464
public init(from decoder: Decoder) throws {
6565
let container = try decoder.container(keyedBy: CodingKeys.self)
6666

0 commit comments

Comments
 (0)