From 82d9b1a6a0b1082d65a0deec5e292acce5e00494 Mon Sep 17 00:00:00 2001 From: Jenea Vranceanu <36865532+JeneaVranceanu@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:11:02 +0200 Subject: [PATCH] chore: swift doc update for the totalDifficulty field; --- Sources/Web3Core/Structure/Block/Block.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Web3Core/Structure/Block/Block.swift b/Sources/Web3Core/Structure/Block/Block.swift index 587458bcf..adfc4466e 100644 --- a/Sources/Web3Core/Structure/Block/Block.swift +++ b/Sources/Web3Core/Structure/Block/Block.swift @@ -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