Skip to content

Commit 293c5c3

Browse files
fix: commented out back the test that must be updated in order to work again. Requires significant update or should be completely removed in favour of ERC20ClassTests/testERC20TokenCreation
1 parent e29217e commit 293c5c3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Tests/web3swiftTests/remoteTests/ST20AndSecurityTokenTests.swift

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ import Core
1414

1515
// MARK: Works only with network connection
1616
class ST20AndSecurityTokenTests: XCTestCase {
17-
18-
func testERC20TokenCreation() async throws {
19-
let web3 = await Web3.InfuraGoerliWeb3(accessToken: Constants.infuraToken)
20-
let w3sTokenAddress = EthereumAddress("0x33d191db2486e0d245b44fde3fae5ed667d5694b")!
21-
let st20token = ST20.init(web3: web3, provider: web3.provider, address: w3sTokenAddress)
22-
try await st20token.readProperties()
23-
XCTAssertEqual(st20token.symbol(), "MIMI")
24-
XCTAssertEqual(st20token.name(), "Mimi")
25-
XCTAssertEqual(st20token.decimals(), 18)
26-
}
17+
18+
// FIXME: Enable me back again
19+
// Test fails because there's no such wallet on goerli chain as well as token.
20+
// func testERC20TokenCreation() async throws {
21+
// let web3 = await Web3.InfuraGoerliWeb3(accessToken: Constants.infuraToken)
22+
// let w3sTokenAddress = EthereumAddress("0x33d191db2486e0d245b44fde3fae5ed667d5694b")!
23+
// let st20token = ST20.init(web3: web3, provider: web3.provider, address: w3sTokenAddress)
24+
// try await st20token.readProperties()
25+
// XCTAssertEqual(st20token.symbol(), "MIMI")
26+
// XCTAssertEqual(st20token.name(), "Mimi")
27+
// XCTAssertEqual(st20token.decimals(), 18)
28+
// }
2729

2830
func testST20tokenBalanceAndAllowance() async throws {
2931
let web3 = await Web3.InfuraGoerliWeb3(accessToken: Constants.infuraToken)

0 commit comments

Comments
 (0)