Skip to content

Commit 0209658

Browse files
chore: test comment typo + rephrasing
1 parent e706637 commit 0209658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/web3swiftTests/localTests/ABIEncoderTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class ABIEncoderTest: XCTestCase {
149149
}
150150

151151
func testConvertToBigUInt() {
152-
/// When negative value is serialized the first byte represents sign with decoded as a signed number
153-
/// but for unsigned numbers the first byte represents just one byte of a number, not a sign.
152+
/// When negative value is serialized the first byte represents sign when decoding as a signed number.
153+
/// Unsigned numbers treat the first byte as just another byte of a number, not a sign.
154154
XCTAssertEqual(ABIEncoder.convertToBigUInt(BigInt(-29390909).serialize() as AnyObject), 4324358205)
155155
XCTAssertEqual(ABIEncoder.convertToBigUInt(Data.fromHex("00FF")! as AnyObject), 255)
156156
XCTAssertEqual(ABIEncoder.convertToBigUInt(BigInt(-29390909) as AnyObject), nil)

0 commit comments

Comments
 (0)