Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 935d6b0

Browse files
committed
solhint working
1 parent 8b7b88f commit 935d6b0

34 files changed

+979
-476
lines changed

docs/packages/Bytes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Create a new `bytes memory` by copying `len` bytes from the source `bytes32`.
408408
- `bts = self.toBytes(len) => for i in [0, len): bts[i] = self[i]`.
409409
##### gascosts
410410

411-
- Fixed: **417**
411+
- Fixed: **423**
412412

413413
***
414414

@@ -433,7 +433,7 @@ Create a new `bytes memory` from an `address`. Note that bytes use big endian fo
433433
- `bts = self.toBytes() => for i in [0, 20): bts[i] = bytes20(self)[i]`.
434434
##### gascosts
435435

436-
- Fixed: **595**
436+
- Fixed: **601**
437437

438438
***
439439

@@ -458,7 +458,7 @@ Create a new `bytes memory` from a `uint`. Note that bytes use big endian format
458458
- `bts = self.toBytes() => for i in [0, 32): bts[i] = bytes32(self)[i]`.
459459
##### gascosts
460460

461-
- Fixed: **459**
461+
- Fixed: **465**
462462

463463
***
464464

@@ -489,7 +489,7 @@ Create a new `bytes memory` from a `uint`. Only `bitsize` bits are copied. Note
489489
- `bts = self.toBytes(bitsize) => for i in [0, bitsize / 8): bts[i] = byte(self >> bitsize - 8 - i*8 & 0xFF)`.
490490
##### gascosts
491491

492-
- Fixed: **812**
492+
- Fixed: **818**
493493

494494
***
495495

docs/packages/Token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**Contract type:** Interface
88

9-
**Source file:** [Token.sol](../../src/token/Token.sol)
9+
**Source file:** [TokenFace.sol](../../src/token/TokenFace.sol)
1010

1111

1212
## description

docs/packages/data/Token.json renamed to docs/packages/data/TokenFace.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"name": "Token",
33
"package": "token",
44
"type": "Interface",
5-
"intro": "Token_description.md"
5+
"intro": "TokenFace_description.md",
6+
"source": "TokenFace"
67
}
File renamed without changes.

examples/bits/BitsExamples.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ pragma solidity ^0.4.16;
22
pragma experimental "v0.5.0";
33
pragma experimental "ABIEncoderV2";
44

5-
import {Bits} from '../src/bits/Bits.sol';
5+
import {Bits} from "../src/bits/Bits.sol";
6+
67

78
contract BitsExamples {
89

examples/bytes/BytesExamples.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ pragma solidity ^0.4.16;
22
pragma experimental "v0.5.0";
33
pragma experimental "ABIEncoderV2";
44

5-
import {Bytes} from '../src/bytes/Bytes.sol';
5+
import {Bytes} from "../src/bytes/Bytes.sol";
6+
67

78
contract BytesExamples {
89

examples/math/MathExamples.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ pragma solidity ^0.4.16;
22
pragma experimental "v0.5.0";
33
pragma experimental "ABIEncoderV2";
44

5-
import {Math} from '../src/math/Math.sol';
5+
import {Math} from "../src/math/Math.sol";
6+
67

78
contract MathExamples {
89

examples/strings/StringsExamples.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ pragma solidity ^0.4.16;
22
pragma experimental "v0.5.0";
33
pragma experimental "ABIEncoderV2";
44

5-
import {Strings} from '../src/strings/Strings.sol';
5+
import {Strings} from "../src/strings/Strings.sol";
6+
7+
/* solhint-disable max-line-length */
68

79
contract StringsExamples {
810

@@ -28,4 +30,5 @@ contract StringsExamples {
2830
str.validate();
2931
}
3032

31-
}
33+
}
34+
/* solhint-enable max-line-length */

package-lock.json

Lines changed: 110 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "jest && node ./bin/main.js tests --silent",
1010
"js-lint": "tslint -p .",
1111
"js-test": "jest",
12-
"contract-lint": "solhint src/**/*.sol",
12+
"contract-lint": "solhint **/*.sol",
1313
"contract-compile": "node ./bin/main.js compile",
1414
"contract-tests": "node ./bin/main.js tests",
1515
"contract-perf": "node ./bin/main.js perf"
@@ -35,13 +35,13 @@
3535
},
3636
"homepage": "https://github.com/ethereum/solidity-examples#readme",
3737
"devDependencies": {
38-
"@types/mkdirp": "^0.5.1",
39-
"@types/node": "^8.0.46",
40-
"@types/jest": "^21.1.4",
38+
"@types/jest": "^21.1.5",
4139
"@types/jest-matchers": "^20.0.0",
40+
"@types/mkdirp": "^0.5.1",
41+
"@types/node": "^8.0.47",
4242
"jest": "^21.2.1",
43-
"solhint": "^1.1.6",
44-
"ts-jest": "^21.1.3",
43+
"solhint": "^1.1.7",
44+
"ts-jest": "^21.1.4",
4545
"tslint": "^5.8.0",
4646
"typescript": "^2.5.3"
4747
},

0 commit comments

Comments
 (0)