Skip to content

Commit

Permalink
chore: swift doc update for the totalDifficulty field;
Browse files Browse the repository at this point in the history
  • Loading branch information
JeneaVranceanu authored Nov 6, 2024
1 parent 546a307 commit 82d9b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Web3Core/Structure/Block/Block.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public struct Block {
public var miner: EthereumAddress? // MARK: This is NOT optional in web3js
public var difficulty: BigUInt
/// by JoshKim: Removed from Ethereum official Blockschema making it optional (https://github.com/ethereum/execution-apis/commit/9e16d5e76a554c733613a2db631130166e2d8725)
/// If decoding of this field has failed it will be set to 0 to avoid breaking changes. Will be made optional in v4 of web3swift.
/// Set to 0 if not provided. Will be made optional in v4 of web3swift.
public var totalDifficulty: BigUInt
public var extraData: Data
public var size: BigUInt
Expand Down

0 comments on commit 82d9b1a

Please sign in to comment.