File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,10 @@ extension Web3 {
128128 case let . exact( number) : latestBlockNumber = number
129129 }
130130
131- guard latestBlockNumber != 0 else { return [ ] }
131+ /// checking if latest block number is greather than number of blocks to take in account
132+ /// we're ignoring case when `latestBlockNumber` == `blockCount` since it's unlikely case
133+ /// which we could neglect
134+ guard latestBlockNumber > blockCount else { return [ ] }
132135
133136 // TODO: Make me work with cache
134137 let lastNthBlockGasPrice = try ( latestBlockNumber - blockCount ... latestBlockNumber)
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = 'web3swift'
3- spec . version = '2.6.2 '
3+ spec . version = '2.6.3 '
44 spec . ios . deployment_target = "9.0"
55 spec . osx . deployment_target = "10.12"
66 spec . license = { :type => 'Apache License 2.0' , :file => 'LICENSE.md' }
You can’t perform that action at this time.
0 commit comments