File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Tests/web3swiftTests/localTests Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ public struct EncodableTransaction {
22
22
// MARK: - Properties that always sends to a Node
23
23
24
24
/// the address of the sender of the transaction recovered from the signature
25
- public var sender : EthereumAddress ? {
26
- envelope. sender
27
- }
25
+ public var sender : EthereumAddress ? { envelope. sender }
28
26
29
27
public var from : EthereumAddress ?
30
28
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class BasicLocalNodeTests: LocalTestCase {
91
91
print ( " Balance after from: " + balanceAfterFrom. description)
92
92
93
93
XCTAssert ( balanceAfterTo - balanceBeforeTo == valueToSend)
94
- let txnGasPrice = details. transaction. gasPrice ?? 0
94
+ let txnGasPrice = details. transaction. meta ? . gasPrice ?? 0
95
95
XCTAssert ( balanceBeforeFrom - ( balanceAfterFrom + receipt. gasUsed * txnGasPrice) == valueToSend)
96
96
}
97
97
}
You can’t perform that action at this time.
0 commit comments