-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ERC-20 token for testing web3swift lib #50
Conversation
@shamatar needs approvement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Fire it on mainnet, send the link on etherecan there and change the tests, to work with this named smart contract! 👍
Fired token on mainnet - https://etherscan.io/token/0x8932404a197d84ec3ea55971aade11cda1dddff1 |
@skywinder everything is done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small request about amount of tokens to check. everything else is fine!
guard case .success(let balance) = erc20token.getBalance(account: userAddress) else {return XCTFail()} | ||
guard case .success(let allowance) = erc20token.getAllowance(originalOwner: userAddress, delegate: userAddress) else {return XCTFail()} | ||
XCTAssert(String(balance) == "28986212") | ||
XCTAssert(String(balance) == "0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 doesn't check anything.
Put some balance to your account, let this check more useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skywinder fixed
@shamatar please make your feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to add extra copy to Rinkeby to test actual sends
No description provided.