File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Tests/web3swiftTests/localTests Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -654,8 +654,7 @@ class web3swiftTransactionsTests: XCTestCase {
654654
655655 let details = try web3. eth. getTransactionDetails ( txHash)
656656 print ( details)
657- let options = details. transaction. getOptions ( )
658- let txnGasLimit = options. resolveGasLimit ( 0 )
657+ let txnGasLimit = details. transaction. gasLimit
659658 XCTAssert ( txnGasLimit == BigUInt ( 78423 ) )
660659 } catch Web3Error . nodeError( let descr) {
661660 guard descr == " insufficient funds for gas * price + value " else { return XCTFail ( ) }
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ class web3swiftUserCases: XCTestCase {
4747 let gasEstimate = try writeTX. estimateGasPromise ( ) . wait ( )
4848 writeTX. transactionOptions. gasLimit = . manual( gasEstimate + 1234 )
4949 let assembled = try writeTX. assemblePromise ( ) . wait ( )
50- let options = assembled. getOptions ( )
51- let txnGasLimit = options. resolveGasLimit ( 0 )
50+ let txnGasLimit = assembled. gasLimit
5251 XCTAssert ( txnGasLimit == gasEstimate + 1234 )
5352 }
5453
@@ -63,9 +62,8 @@ class web3swiftUserCases: XCTestCase {
6362 let gasEstimate = try writeTX. estimateGasPromise ( ) . wait ( )
6463 writeTX. transactionOptions. gasLimit = . manual( gasEstimate + 1234 )
6564 let assembled = try writeTX. assemblePromise ( ) . wait ( )
66- let options = assembled. getOptions ( )
67- let txnGasLimit = options. resolveGasLimit ( 0 )
68- let txnGasPrice = options. resolveGasPrice ( 0 )
65+ let txnGasLimit = assembled. gasLimit
66+ let txnGasPrice = assembled. gasPrice
6967
7068 XCTAssert ( txnGasLimit == gasEstimate + 1234 )
7169 XCTAssert ( txnGasPrice == gasPrice * 2 )
You can’t perform that action at this time.
0 commit comments