Skip to content

Commit 44100da

Browse files
committed
More fixes
1 parent 3fbb3dc commit 44100da

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

Sources/Core/Transaction/CodableTransaction.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import Foundation
88
import BigInt
99

10-
1110
/// Structure capable of carying the parameters for any transaction type.
1211
/// while all fields in this struct are optional, they are not necessarily
1312
/// optional for the type of transaction they apply to.
@@ -289,7 +288,7 @@ extension CodableTransaction {
289288
/// - parameters: EthereumParameters object containing additional parametrs for the transaction like gas
290289
public init(type: TransactionType? = nil, to: EthereumAddress, nonce: BigUInt = 0,
291290
chainID: BigUInt = 0, value: BigUInt = 0, data: Data = Data(),
292-
gasLimit: BigUInt = 0, maxFeePerGas: BigUInt? = nil, maxPriorityFeePerGas: BigUInt? = nil, gasPrice: BigUInt? = nil,
291+
gasLimit: BigUInt = 0, maxFeePerGas: BigUInt? = nil, maxPriorityFeePerGas: BigUInt? = nil, gasPrice: BigUInt? = nil,
293292
accessList: [AccessListEntry]? = nil, v: BigUInt = 1, r: BigUInt = 0, s: BigUInt = 0) {
294293
// FIXME: This is duplication and should be fixed.
295294
self.data = data

Tests/web3swiftTests/localTests/BasicLocalNodeTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class BasicLocalNodeTests: LocalTestCase {
2222
let contract = web3.contract(abiString, at: nil, abiVersion: 2)!
2323

2424
let parameters = [] as [AnyObject]
25-
// MARK: Writing Data flow
2625
let deployTx = contract.prepareDeploy(bytecode: bytecode, parameters: parameters)!
2726
deployTx.transaction.from = allAddresses[0]
2827
let policies = Policies(gasLimitPolicy: .manual(3000000))

Tests/web3swiftTests/localTests/LocalTestCase.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import web3swift
1010
class LocalTestCase: XCTestCase {
1111

1212
static let url = URL(string: "http://127.0.0.1:8545")!
13+
static let keyStoreManager: KeystoreManager = KeystoreManager([try! EthereumKeystoreV3(password: "web3swift")!])
1314

1415
override func setUp() async throws {
1516
let web3 = try! await Web3.new(LocalTestCase.url)
@@ -29,7 +30,7 @@ class LocalTestCase: XCTestCase {
2930
writeTX.transaction.value = value
3031
let policies = Policies(gasLimitPolicy: .manual(78423), gasPricePolicy: .manual(20000000000))
3132
for _ in block..<25 {
32-
let _ = try! await writeTX.writeToChain(password: "", policies: policies)
33+
_ = try! await writeTX.writeToChain(password: "", policies: policies)
3334
}
3435
}
3536
}

0 commit comments

Comments
 (0)