Skip to content

Commit eb37195

Browse files
committed
fix warrnings
1 parent f2756ac commit eb37195

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/web3swift/Browser/Bridge.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Copyright © 2017 Samaritan. All rights reserved.
77
//
88

9-
import UIKit
109
import WebKit
1110

1211
/// Bridge for WKWebView and JavaScript
@@ -197,7 +196,7 @@ public extension WKWebView {
197196
}
198197

199198
/// Bridge for WKWebView and JavaScript. Initialize `lazy`
200-
public var bridge: Bridge {
199+
var bridge: Bridge {
201200
if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
202201
return bridge
203202
}
@@ -207,7 +206,7 @@ public extension WKWebView {
207206
}
208207

209208
/// Remove Bridge And Reset, All the handlers will be removed
210-
public func removeBridge() {
209+
func removeBridge() {
211210
if let bridge = objc_getAssociatedObject(self, &STPrivateStatic.bridgeKey) as? Bridge {
212211
let userContentController = bridge.configuration.userContentController
213212
userContentController.removeScriptMessageHandler(forName: Bridge.name)
@@ -218,7 +217,7 @@ public extension WKWebView {
218217

219218
fileprivate extension WKWebView {
220219

221-
fileprivate func st_dispatchBridgeEvent(_ eventName: String,
220+
func st_dispatchBridgeEvent(_ eventName: String,
222221
parameters: [String: Any],
223222
results: Bridge.Results,
224223
completionHandler: ((Any?, Error?) -> Void)? = nil) {

Sources/web3swift/Transaction/EthereumTransaction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public struct EthereumTransaction: CustomStringConvertible {
1717
// The destination address of the message, left undefined for a contract-creation transaction.
1818
public var to: EthereumAddress
1919
// (optional) The value transferred for the transaction in wei, also the endowment if it’s a contract-creation transaction.
20+
// TODO - split EthereumTransaction to two classes: with optional and required value property, depends on type of transaction
2021
public var value: BigUInt?
2122
public var data: Data
2223
public var v: BigUInt = BigUInt(1)

0 commit comments

Comments
 (0)