Skip to content

Commit

Permalink
fix: typos in error messages and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Aug 23, 2023
1 parent 139c9d2 commit 5c84671
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ All notable changes to this project will be documented in this file. See [standa
* **contract:** use fallback account if `onAccount` not provided ([9033cd7](https://github.com/aeternity/aepp-sdk-js/commit/9033cd799be5974ebf28a49df181eeb63b1fce84))
* converting proxied options to JSON ([efebbd1](https://github.com/aeternity/aepp-sdk-js/commit/efebbd139ea85c35e28bdcfe907670743f9fc1f4))
* provide types in exports field of package.json ([dbd19e7](https://github.com/aeternity/aepp-sdk-js/commit/dbd19e70bca2d6dbc5b2392db478bb98936b63f2))
* reject prefixes other then provided in isAddressValid ([9462add](https://github.com/aeternity/aepp-sdk-js/commit/9462adde8fab9848fca0a6d9a382dbd34f5e2b8f))
* reject prefixes other than provided in isAddressValid ([9462add](https://github.com/aeternity/aepp-sdk-js/commit/9462adde8fab9848fca0a6d9a382dbd34f5e2b8f))
* **tx-builder:** `buildTx` produces the same type as `unpackTx` accepts ([d3d6c88](https://github.com/aeternity/aepp-sdk-js/commit/d3d6c88607abbfb74acf016fba886540938b216d))
* **tx-builder:** decode tag in entry error message ([db0d96f](https://github.com/aeternity/aepp-sdk-js/commit/db0d96f156f3e8cfe52c6a7d7411c359f6dae35c))
* **wallet:** emit internal error if something broke while broadcast ([332d1b5](https://github.com/aeternity/aepp-sdk-js/commit/332d1b567f69bf6b7d3567af43fb805556ac015b))
Expand Down
2 changes: 1 addition & 1 deletion src/contract/Contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ interface GetCallResultByHashReturnType<M extends ContractMethodsBase, Fn extend
* const staticCallResult = await contractIns.$call('setState', [123], { callStatic: true })
* ```
* Also you can call contract like: `await contractIns.setState(123, options)`
* Then sdk decide to make on-chain or static call(dry-run API) transaction based on function is
* Then sdk decide to make on-chain or static call (dry-run API) transaction based on function is
* stateful or not
*/
class Contract<M extends ContractMethodsBase> {
Expand Down
2 changes: 1 addition & 1 deletion src/tx/builder/field-types/fee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
const value = new BigNumber(_value ?? minFee);
if (minFee.gt(value)) {
if (_pickBiggerFee === true) return minFee.toFixed();
throw new IllegalArgumentError(`Fee ${value.toString()} must be bigger then ${minFee}`);
throw new IllegalArgumentError(`Fee ${value.toString()} must be bigger than ${minFee}`);

Check warning on line 159 in src/tx/builder/field-types/fee.ts

View check run for this annotation

Codecov / codecov/patch

src/tx/builder/field-types/fee.ts#L159

Added line #L159 was not covered by tests
}
return value.toFixed();
},
Expand Down
2 changes: 1 addition & 1 deletion src/tx/builder/field-types/gas-price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {

serializeAettos(value: string | undefined = MIN_GAS_PRICE.toString()): string {
if (+value < MIN_GAS_PRICE) {
throw new IllegalArgumentError(`Gas price ${value.toString()} must be bigger then ${MIN_GAS_PRICE}`);
throw new IllegalArgumentError(`Gas price ${value.toString()} must be bigger than ${MIN_GAS_PRICE}`);

Check warning on line 10 in src/tx/builder/field-types/gas-price.ts

View check run for this annotation

Codecov / codecov/patch

src/tx/builder/field-types/gas-price.ts#L10

Added line #L10 was not covered by tests
}
return value;
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function verifyMessage(
/**
* Check key pair for validity
*
* Sign a message, and then verifying that signature
* Signs a message, and then verifies that signature
* @param privateKey - Private key to verify
* @param publicKey - Public key to verify as hex string
* @returns Valid?
Expand Down

0 comments on commit 5c84671

Please sign in to comment.