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 {
128
128
case let . exact( number) : latestBlockNumber = number
129
129
}
130
130
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 [ ] }
132
135
133
136
// TODO: Make me work with cache
134
137
let lastNthBlockGasPrice = try ( latestBlockNumber - blockCount ... latestBlockNumber)
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
2
spec . name = 'web3swift'
3
- spec . version = '2.6.2 '
3
+ spec . version = '2.6.3 '
4
4
spec . ios . deployment_target = "9.0"
5
5
spec . osx . deployment_target = "10.12"
6
6
spec . license = { :type => 'Apache License 2.0' , :file => 'LICENSE.md' }
You can’t perform that action at this time.
0 commit comments