mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
fix: fix typos (#2104)
* Previou -> Previous * fix spelling issues in comments * fix more typos * fix tests
This commit is contained in:
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@@ -1,7 +1,11 @@
|
||||
{
|
||||
"editor.tabSize": 2,
|
||||
"cSpell.words": [
|
||||
"secp256k1"
|
||||
"Multisigned",
|
||||
"Setf",
|
||||
"hostid",
|
||||
"preauthorization",
|
||||
"secp256k1"
|
||||
],
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
|
||||
@@ -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,
|
||||
/**
|
||||
|
||||
@@ -15,7 +15,7 @@ interface ModifiedNode {
|
||||
FinalFields?: { [field: string]: unknown }
|
||||
PreviousFields?: { [field: string]: unknown }
|
||||
PreviousTxnID?: string
|
||||
PreviouTxnLgrSeq?: number
|
||||
PreviousTxnLgrSeq?: number
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user