Skip to content

Commit 3d0512a

Browse files
committed
Fix spellcheck
1 parent adec88b commit 3d0512a

20 files changed

+43
-35
lines changed

.cspell.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"bitcore",
2424
"bitfield",
2525
"bitfield's",
26+
"bitshift",
2627
"blackie",
2728
"blockbook",
2829
"booland",
@@ -82,6 +83,8 @@
8283
"INPUTINDEX",
8384
"INPUTSEQUENCENUMBER",
8485
"ints",
86+
"introspected",
87+
"introspecting",
8588
"kalis",
8689
"keypair",
8790
"keypairs",
@@ -138,6 +141,7 @@
138141
"prevouts",
139142
"priv",
140143
"pubkey",
144+
"pubkeys",
141145
"pubkeytype",
142146
"pushbytes",
143147
"pushdata",
@@ -155,6 +159,7 @@
155159
"scripthash",
156160
"sdks",
157161
"secp",
162+
"segwit",
158163
"setup",
159164
"sig",
160165
"sighash",
@@ -185,6 +190,7 @@
185190
"unary",
186191
"unlocker",
187192
"unlockers",
193+
"unreached",
188194
"utxo",
189195
"utxo's",
190196
"UTXOBYTECODE",
@@ -217,6 +223,7 @@
217223
"getrawtransaction",
218224
"hardhat",
219225
"hodlvault",
226+
"incl",
220227
"infima",
221228
"jedex",
222229
"lichos",
@@ -227,6 +234,7 @@
227234
"outputnulldata",
228235
"outputp",
229236
"pako",
237+
"paytaca",
230238
"popd",
231239
"pushd",
232240
"sendrawtransaction",

examples/transfer_with_timeout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const transferTx = await transactionBuilder.send();
5858
console.log('transfer transaction details:', stringify(transferTx));
5959

6060
// Select a 2nd contract UTXO to spend from
61-
const updatecContractUtxos = await contract.getUtxos();
62-
const contractInputUtxo2 = updatecContractUtxos.find(utxo => utxo.satoshis > 5_000n);
61+
const updateContractUtxos = await contract.getUtxos();
62+
const contractInputUtxo2 = updateContractUtxos.find(utxo => utxo.satoshis > 5_000n);
6363
if (!contractInputUtxo2) throw new Error('No contract UTXO with enough satoshis found');
6464
const inputAmount2 = contractInputUtxo2.satoshis;
6565

packages/cashc/src/generation/GenerateTargetTraversal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default class GenerateTargetTraversalWithLocation extends AstTraversal {
211211

212212
// Replace the location data of the final check (e.g. (x == 1)) with the location data of the
213213
// full require statement including the removed OP_VERIFY (e.g. require(x == 1)), because
214-
// the check opcode (e.g. OP_EQUAL) now represents the entire require statement (incl implicit OP_VERIFY)
214+
// the check opcode (e.g. OP_EQUAL) now represents the entire require statement (including implicit OP_VERIFY)
215215
this.locationData.pop();
216216
this.locationData.push({ location, positionHint });
217217
} else {

packages/cashscript/src/advanced/LibauthTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export const getLibauthTemplates = (
407407
for (const [inputIndex, input] of (txn.inputs as StandardUnlockableUtxo[]).entries()) {
408408
// If template exists on the input, it indicates this is a P2PKH (Pay to Public Key Hash) input
409409
if ('template' in input.unlocker) {
410-
// @ts-ignore TODO: Remove UtxoP2PKH type and only use UnlockableUtxo in Libaith Template generation
410+
// @ts-ignore TODO: Remove UtxoP2PKH type and only use UnlockableUtxo in Libauth Template generation
411411
input.template = input.unlocker?.template; // Added to support P2PKH inputs in buildTemplate
412412
Object.assign(p2pkhEntities, generateTemplateEntitiesP2PKH(inputIndex));
413413
Object.assign(p2pkhScripts, generateTemplateScriptsP2PKH(input.unlocker.template, inputIndex));

packages/cashscript/test/TransactionBuilder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ describe('Transaction Builder', () => {
212212

213213
// TODO: Consider improving error messages checked below to also include the input/output index
214214

215-
it('should fail when trying to send to invalid addres', async () => {
215+
it('should fail when trying to send to invalid address', async () => {
216216
const p2pkhUtxos = (await p2pkhInstance.getUtxos()).filter(isNonTokenUtxo).sort(utxoComparator).reverse();
217217

218218
expect(() => {

packages/cashscript/test/debugging.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('Debugging tests', () => {
134134
expect(transaction).toLog(expectedSecondLog);
135135
});
136136

137-
// This is an edge case because of optimisationn position hint merging
137+
// This is an edge case because of optimisation position hint merging
138138
it('should log the correct variable value inside a notif statement', async () => {
139139
const transaction = new TransactionBuilder({ provider })
140140
.addInput(contractUtxo, contractTestLogs.unlock.test_log_inside_notif_statement(false))

packages/cashscript/test/fixture/debugging/debugging_contracts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ contract Test(pubkey owner) {
271271
}
272272
`;
273273

274-
const CONTRACT_TEST_MULTPLE_LOGS = `
274+
const CONTRACT_TEST_MULTIPLE_LOGS = `
275275
contract Test(pubkey owner) {
276276
function transfer(sig ownerSig, int num) {
277277
require(checkSig(ownerSig, owner));
@@ -319,5 +319,5 @@ export const artifactTestMultilineRequires = compileString(CONTRACT_TEST_MULTILI
319319
export const artifactTestZeroHandling = compileString(CONTRACT_TEST_ZERO_HANDLING);
320320
export const artifactTestLogs = compileString(CONTRACT_TEST_LOGS);
321321
export const artifactTestConsecutiveLogs = compileString(CONTRACT_TEST_CONSECUTIVE_LOGS);
322-
export const artifactTestMultipleLogs = compileString(CONTRACT_TEST_MULTPLE_LOGS);
322+
export const artifactTestMultipleLogs = compileString(CONTRACT_TEST_MULTIPLE_LOGS);
323323
export const artifactTestMultipleConstructorParameters = compileString(CONTRACT_TEST_MULTIPLE_CONSTRUCTOR_PARAMETERS);

packages/cashscript/test/multi-contract-debugging.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import p2pkhArtifact from './fixture/p2pkh.artifact.js';
1818
import bigintArtifact from './fixture/bigint.artifact.js';
1919
import '../src/test/JestExtensions.js';
20-
import { ARTIFACT_FUNCTION_NAME_COLLISION, ARTIFACT_NAME_COLLISION, ARTIFACT_CONTRACT_NAME_COLLISION, ARTIFACT_SAME_NAME_DIFFERENT_PATH } from './fixture/debugging/multicontract_debugging_contracts.js';
20+
import { ARTIFACT_FUNCTION_NAME_COLLISION, ARTIFACT_NAME_COLLISION, ARTIFACT_CONTRACT_NAME_COLLISION, ARTIFACT_SAME_NAME_DIFFERENT_PATH } from './fixture/debugging/multi_contract_debugging_contracts.js';
2121
import { addressToLockScript } from '../src/utils.js';
2222
import SiblingIntrospectionArtifact from './fixture/SiblingIntrospection.artifact.js';
2323

packages/utils/src/optimisations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ const unprovableOptimisations = [
136136
] as [string, string][];
137137

138138
// Note: we moved these optimisations into a single file, but kept the exact same order as before,
139-
// because the order in which oprimisations are applied can impact the output.
139+
// because the order in which optimisations are applied can impact the output.
140140
export const optimisationReplacements = [...provableOptimisations, ...unprovableOptimisations];

0 commit comments

Comments
 (0)