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 {
2626
2727 let addressOfUser = EthereumAddress ( " 0xe22b8979739D724343bd002F9f432F5990879901 " ) !
2828 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 ( ) }
3030 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 )
3333 }
3434
3535 // FIXME: Make me work
You can’t perform that action at this time.
0 commit comments