File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66// Copyright © 2017 Samaritan. All rights reserved.
77//
88
9- import UIKit
109import 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
219218fileprivate 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 ) {
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments