File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/web3swiftTests/localTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ class ERC20Tests: LocalTestCase {
26
26
27
27
let addressOfUser = EthereumAddress ( " 0xe22b8979739D724343bd002F9f432F5990879901 " ) !
28
28
let contract = web3. contract ( Web3 . Utils. erc20ABI, at: receipt. contractAddress!, abiVersion: 2 ) !
29
- guard let readTX = contract. createReadOperation ( " balanceOf " , parameters: [ addressOfUser] ) else { return XCTFail ( ) }
29
+ guard let readTX = contract. createReadOperation ( " balanceOf " , parameters: [ addressOfUser] ) else { return XCTFail ( ) }
30
30
readTX. transaction. from = addressOfUser
31
- let tokenBalance = try await readTX. callContractMethod ( )
32
- guard let bal = tokenBalance [ " 0 " ] as? BigUInt else { return XCTFail ( ) }
31
+ let tokenBalanceResponse = try await readTX. callContractMethod ( )
32
+ XCTAssertNotNil ( tokenBalanceResponse [ " 0 " ] as? BigUInt )
33
33
}
34
34
35
35
// FIXME: Make me work
You can’t perform that action at this time.
0 commit comments