fix: fix typos (#2104)

* Previou -> Previous

* fix spelling issues in comments

* fix more typos

* fix tests
This commit is contained in:
Mayukha Vadari
2022-09-26 16:23:49 -04:00
committed by GitHub
parent 8a9a9bcc28
commit 5ab4b67c05
5 changed files with 11 additions and 7 deletions

View File

@@ -1,7 +1,11 @@
{
"editor.tabSize": 2,
"cSpell.words": [
"secp256k1"
"Multisigned",
"Setf",
"hostid",
"preauthorization",
"secp256k1"
],
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",

View File

@@ -108,7 +108,7 @@ export interface AccountRootFlagsInterface {
*/
lsfGlobalFreeze?: boolean
/**
* Enable rippling on this addresses's trust lines by default. Required for issuing addresses; discouraged for others.
* Enable rippling on this address's trust lines by default. Required for issuing addresses; discouraged for others.
*/
lsfDefaultRipple?: boolean
/**
@@ -148,7 +148,7 @@ export enum AccountRootFlags {
*/
lsfGlobalFreeze = 0x00400000,
/**
* Enable rippling on this addresses's trust lines by default. Required for issuing addresses; discouraged for others.
* Enable rippling on this address's trust lines by default. Required for issuing addresses; discouraged for others.
*/
lsfDefaultRipple = 0x00800000,
/**

View File

@@ -15,7 +15,7 @@ interface ModifiedNode {
FinalFields?: { [field: string]: unknown }
PreviousFields?: { [field: string]: unknown }
PreviousTxnID?: string
PreviouTxnLgrSeq?: number
PreviousTxnLgrSeq?: number
}
}

View File

@@ -57,7 +57,7 @@ export function validateSignerListSet(tx: Record<string, unknown>): void {
if (tx.SignerEntries.length === 0) {
throw new ValidationError(
'SignerListSet: need atleast 1 member in SignerEntries',
'SignerListSet: need at least 1 member in SignerEntries',
)
}

View File

@@ -66,12 +66,12 @@ describe('SignerListSet', function () {
assert.throws(
() => validateSignerListSet(signerListSetTx),
ValidationError,
'SignerListSet: need atleast 1 member in SignerEntries',
'SignerListSet: need at least 1 member in SignerEntries',
)
assert.throws(
() => validate(signerListSetTx),
ValidationError,
'SignerListSet: need atleast 1 member in SignerEntries',
'SignerListSet: need at least 1 member in SignerEntries',
)
})