Skip to content

Commit 89ee54f

Browse files
Delete Petersburg case.
1 parent 1e2b0fa commit 89ee54f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Sources/web3swift/Web3/Web3+EIP1559.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import BigInt
1515
///
1616
/// Additional info about base fee options: https://ethereum.org/en/developers/docs/gas/#post-london
1717
public extension Web3 {
18-
func verifyGasLimit(parentGasLimit: BigUInt, currentGasLimit: BigUInt) -> Bool {
18+
private func verifyGasLimit(parentGasLimit: BigUInt, currentGasLimit: BigUInt) -> Bool {
1919
var diff = BigInt(parentGasLimit) - BigInt(currentGasLimit)
2020

2121
// make diff positive number
@@ -105,12 +105,6 @@ public extension Web3 {
105105
///
106106
/// Block number: 7_280_000
107107
case Constantinople
108-
/// Petersburg switch block
109-
///
110-
/// Date: 27.11.2019
111-
///
112-
/// Block number: 7_280_000
113-
case Petersburg
114108
/// Istanbul switch block
115109
///
116110
/// Date: 07.12.2019
@@ -146,7 +140,6 @@ public extension Web3 {
146140
switch self {
147141
case .Byzantium: return 4_370_000
148142
case .Constantinople: return 7_280_000
149-
case .Petersburg: return 7_280_000
150143
case .Istanbul: return 9_069_000
151144
case .MuirGlacier: return 9_200_000
152145
case .Berlin: return 12_244_000

0 commit comments

Comments
 (0)