Skip to content
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

fix: resolve spelling issues #793

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dapp-tests/fail/dsProveFail.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ contract SolidityTest is DSTest, DSMath {

uint expected = usr == address(this)
? 0 // self transfer is a noop
: amt; // otherwise `amt` has been transfered to `usr`
: amt; // otherwise `amt` has been transferred to `usr`
assertEq(expected, postbal - prebal);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/dapp-tests/pass/dsProvePass.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ contract SolidityTest is DSTest, DSMath {

uint expected = usr == address(this)
? 0 // self transfer is a noop
: amt; // otherwise `amt` has been transfered to `usr`
: amt; // otherwise `amt` has been transferred to `usr`
assertEq(expected, postbal - prebal);
}

function prove_burn(uint supply, uint amt) public {
if (amt > supply) return; // no undeflow
if (amt > supply) return; // no underflow

token.mint(supply);
token.burn(amt);
Expand Down
2 changes: 1 addition & 1 deletion src/dapp/libexec/dapp/dapp-test-geth-experimental
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
shopt -s nullglob

# To run the unit tests as fast as possible, we need to avoid serial
# blockchain interactions. Preferrably we would be done in two
# blockchain interactions. Preferably we would be done in two
# blocks, one for creating contracts, one for running the tests
# against them.
#
Expand Down
6 changes: 3 additions & 3 deletions src/dapp/libexec/dapp/dapp-verify-contract
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
### dapp-verify-contract -- verify contract souce on etherscan
### dapp-verify-contract -- verify contract source on etherscan
### Usage: dapp verify-contract <path>:<contractname> <address> [constructorArgs]

set -e
Expand Down Expand Up @@ -113,8 +113,8 @@ while [ $count -lt 5 ]; do
response=$(curl -fsS "$ETHERSCAN_API_URL" -d "$query" \
--data-urlencode "compilerversion=$version" \
--data-urlencode "sourceCode@"<(echo "$source") \
--data-urlencode "constructorArguements=$constructorArguments" -X POST)
# NOTE: the Arguements typo is in etherscan's API
--data-urlencode "constructorArguments=$constructorArguments" -X POST)
# NOTE: the Arguments typo is in etherscan's API
Comment on lines -116 to +117
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This typo is part of the etherscan api

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crazy lmao

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the hell.


status=$(jshon <<<"$response" -e status -u)
guid=$(jshon <<<"$response" -e result -u)
Expand Down
2 changes: 1 addition & 1 deletion src/ethsign/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COMMANDS:
```
## Installation

`ethsign` is distrubuted as part of the [Dapp tools suite](../../README.md).
`ethsign` is distributed as part of the [Dapp tools suite](../../README.md).
2 changes: 1 addition & 1 deletion src/hevm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Available options:
point
--solver TEXT Used SMT solver: z3 (default) or cvc4
--smtdebug Print smt queries sent to the solver
--assertions [WORD256] Comma seperated list of solc panic codes to check for
--assertions [WORD256] Comma separated list of solc panic codes to check for
(default: everything except arithmetic overflow)
--ask-smt-iterations INTEGER
Number of times we may revisit a particular branching
Expand Down
2 changes: 1 addition & 1 deletion src/hevm/ethjet/ethjet-ff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace ethjet_ff {
// for loading an element of F_{q^2} (a coordinate of G_2)
// consumes 64 bytes
alt_bn128_Fq2 read_Fq2_element (uint8_t *in) {
// suprising "big-endian" encoding
// surprising "big-endian" encoding
alt_bn128_Fq x0 = read_Fq_element(in+32);
alt_bn128_Fq x1 = read_Fq_element(in);

Expand Down
6 changes: 3 additions & 3 deletions src/hevm/hevm-cli/hevm-cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ data Command w
, maxIterations :: w ::: Maybe Integer <?> "Number of times we may revisit a particular branching point"
, solver :: w ::: Maybe Text <?> "Used SMT solver: z3 (default) or cvc4"
, smtdebug :: w ::: Bool <?> "Print smt queries sent to the solver"
, assertions :: w ::: Maybe [Word256] <?> "Comma seperated list of solc panic codes to check for (default: everything except arithmetic overflow)"
, assertions :: w ::: Maybe [Word256] <?> "Comma separated list of solc panic codes to check for (default: everything except arithmetic overflow)"
, askSmtIterations :: w ::: Maybe Integer <?> "Number of times we may revisit a particular branching point before we consult the smt solver to check reachability (default: 5)"
}
| Equivalence -- prove equivalence between two programs
Expand Down Expand Up @@ -198,15 +198,15 @@ data Command w
, maxIterations :: w ::: Maybe Integer <?> "Number of times we may revisit a particular branching point"
, askSmtIterations :: w ::: Maybe Integer <?> "Number of times we may revisit a particular branching point before we consult the smt solver to check reachability (default: 5)"
}
| BcTest -- Run an Ethereum Blockhain/GeneralState test
| BcTest -- Run an Ethereum Blockchain/GeneralState test
{ file :: w ::: String <?> "Path to .json test file"
, test :: w ::: [String] <?> "Test case filter - only run specified test method(s)"
, debug :: w ::: Bool <?> "Run interactively"
, jsontrace :: w ::: Bool <?> "Print json trace output at every step"
, diff :: w ::: Bool <?> "Print expected vs. actual state on failure"
, timeout :: w ::: Maybe Int <?> "Execution timeout (default: 10 sec.)"
}
| Compliance -- Run Ethereum Blockhain compliance report
| Compliance -- Run Ethereum Blockchain compliance report
{ tests :: w ::: String <?> "Path to Ethereum Tests directory"
, group :: w ::: Maybe String <?> "Report group to run: VM or Blockchain (default: Blockchain)"
, match :: w ::: Maybe String <?> "Test case filter - only run methods matching regex"
Expand Down
2 changes: 1 addition & 1 deletion src/hevm/src/EVM/ABI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

Nested sequences are encoded recursively with no special treatment.

Calldata args are encoded as heterogenous sequences sans length prefix.
Calldata args are encoded as heterogeneous sequences sans length prefix.

-}

Expand Down