Skip to content

Commit 531db2e

Browse files
Changed testEthSendExampleWithRemoteSigning test
because now gas price of used transaction stores in `meta` container.
1 parent 9a617a7 commit 531db2e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/Core/Transaction/EncodableTransaction.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ public struct EncodableTransaction {
2222
// MARK: - Properties that always sends to a Node
2323

2424
/// 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 }
2826

2927
public var from: EthereumAddress?
3028

Tests/web3swiftTests/localTests/BasicLocalNodeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class BasicLocalNodeTests: LocalTestCase {
9191
print("Balance after from: " + balanceAfterFrom.description)
9292

9393
XCTAssert(balanceAfterTo - balanceBeforeTo == valueToSend)
94-
let txnGasPrice = details.transaction.gasPrice ?? 0
94+
let txnGasPrice = details.transaction.meta?.gasPrice ?? 0
9595
XCTAssert(balanceBeforeFrom - (balanceAfterFrom + receipt.gasUsed * txnGasPrice) == valueToSend)
9696
}
9797
}

0 commit comments

Comments
 (0)