File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/web3swiftTests/localTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ class ABIEncoderTest: XCTestCase {
149
149
}
150
150
151
151
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.
154
154
XCTAssertEqual ( ABIEncoder . convertToBigUInt ( BigInt ( - 29390909 ) . serialize ( ) as AnyObject ) , 4324358205 )
155
155
XCTAssertEqual ( ABIEncoder . convertToBigUInt ( Data . fromHex ( " 00FF " ) ! as AnyObject ) , 255 )
156
156
XCTAssertEqual ( ABIEncoder . convertToBigUInt ( BigInt ( - 29390909 ) as AnyObject ) , nil )
You can’t perform that action at this time.
0 commit comments