Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Nov 19, 2020
1 parent d025b78 commit ac77d84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions contracts/contracts/Bytes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@ library Bytes {
// any potential garbage bytes in there.
uint256 data = self << ((32 - byteLength) * 8);
assembly {
mstore(
add(
bts,
/*BYTES_HEADER_SIZE*/
32
),
data
)
// 32 is BYTES_HEADER_SIZE
mstore(add(bts, 32), data)
}
}

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/zk/src/fmt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const IGNORED = ['target', 'node_modules', 'volumes', 'build', 'dist', '.git'];
const EXTENSIONS = ['ts', 'md', 'sol'];

// If you wonder why this is written so obscurely through find and not through .prettierignore and globs,
// it's because prettier *first* expands globs and *then* applies ignore rules, which leads to an error
// it's because prettier *first* expands globs and *then* applies ignore rules, which leads to an error
// because it can't expand into volumes folder with not enough access rights, even if it is ignored.
//
// And if we let the shell handle glob expansion instead of prettier, `shopt -s globstar` will be
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"ts-tests": "yarn workspace ts-tests",
"explorer": "yarn workspace sync-explorer",
"zk": "yarn workspace zk",
"lint:md": "markdownlint $(find . -name '*.md' -a ! -path '*/node_modules/*')",
"lint:md": "markdownlint $(find . -name '*.md' -print -o -path '*/node_modules' -prune)",
"lint:sol": "solhint contracts/{,dev-}contracts{,/**}/*.sol"
},
"devDependencies": {
Expand Down

0 comments on commit ac77d84

Please sign in to comment.