Skip to content

Commit 418bc11

Browse files
penovicpweb-flowBorkBorkedscript-moneyivpavici
authored
chore: aggregate typo changes (#870)
--------- Co-authored-by: CI <noreply@github.com> Co-authored-by: BorkBorked <107079055+BorkBorked@users.noreply.github.com> Co-authored-by: script-money <74860630+script-money@users.noreply.github.com> Co-authored-by: Ivan Pavičić <ivan.pavicic@live.com> Co-authored-by: kongtaoxing <xyf8658@163.com> Co-authored-by: Dhruv Kelawala <dhruvrk2000@gmail.com>
1 parent 9986362 commit 418bc11

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+80
-80
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you consider to contribute to this project please read [CONTRIBUTING.md](http
6464

6565
Special thanks to all the [contributors](https://github.com/starknet-io/starknet.js/graphs/contributors), especially to:
6666

67-
- Sean ([@0xs34n](https://github.com/0xs34n)), the original creator of Straknet.js!
67+
- Sean ([@0xs34n](https://github.com/0xs34n)), the original creator of Starknet.js!
6868

6969
- Janek ([@janek26](https://github.com/janek26)) and Dhruv ([@dhruvkelawala](https://github.com/dhruvkelawala)) from [Argent](https://github.com/argentlabs)
7070

__mocks__/cairo/helloCairo2/hellocairo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ mod HelloStarknet {
478478
}
479479
}
480480

481-
// return Option<litteral>
481+
// return Option<literal>
482482
fn option_u8_output(self: @ContractState, val1: u8) -> Option<u8> {
483483
if val1 < 100 {
484484
return Option::None(());

__tests__/cairo1v2.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('Cairo 1', () => {
141141
expect(balance).toBe(200n);
142142
});
143143

144-
test('Cairo 1 Contract Interaction - uint 8, 16, 32, 64, 128, litterals', async () => {
144+
test('Cairo 1 Contract Interaction - uint 8, 16, 32, 64, 128, literals', async () => {
145145
const tx = await cairo1Contract.increase_balance_u8(255n);
146146
await account.waitForTransaction(tx.transaction_hash);
147147
const balance = await cairo1Contract.get_balance_u8();

__tests__/contract.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ describe('Complex interaction', () => {
443443
expect(json.stringify(compiled)).toBe(reference);
444444
expect(json.stringify(doubleCompiled)).toBe(reference);
445445

446-
// mix of complex and litteral
446+
// mix of complex and literal
447447
const mySetArgs = {
448448
validators: [234, 235],
449449
powers: { a1: 562, a2: 567 },

src/account/interface.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ export abstract class AccountInterface extends ProviderInterface {
261261
): Promise<DeployContractResponse>;
262262

263263
/**
264-
* Sign an JSON object for off-chain usage with the starknet private key and return the signature
265-
* This adds a message prefix so it cant be interchanged with transactions
264+
* Signs a JSON object for off-chain usage with the Starknet private key and returns the signature
265+
* This adds a message prefix so it can't be interchanged with transactions
266266
*
267267
* @param json - JSON object to be signed
268268
* @returns the signature of the JSON object
@@ -271,8 +271,8 @@ export abstract class AccountInterface extends ProviderInterface {
271271
public abstract signMessage(typedData: TypedData): Promise<Signature>;
272272

273273
/**
274-
* Hash a JSON object with pederson hash and return the hash
275-
* This adds a message prefix so it cant be interchanged with transactions
274+
* Hash a JSON object with Pedersen hash and return the hash
275+
* This adds a message prefix so it can't be interchanged with transactions
276276
*
277277
* @param json - JSON object to be hashed
278278
* @returns the hash of the JSON object
@@ -322,7 +322,7 @@ export abstract class AccountInterface extends ProviderInterface {
322322
): Promise<bigint>;
323323

324324
/**
325-
* Simulates an array of transaction and returns an array of transaction trace and estimated fee.
325+
* Simulates an array of transactions and returns an array of transaction trace and estimated fee.
326326
*
327327
* @param invocations Invocations containing:
328328
* - type - transaction type: DECLARE, (multi)DEPLOY, DEPLOY_ACCOUNT, (multi)INVOKE_FUNCTION

src/contract/contractFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ export class ContractFactory {
110110
return new Contract(this.abi, address, this.account);
111111
}
112112

113-
// ethers.js' getDeployTransaction cant be supported as it requires the account or signer to return a signed transaction which is not possible with the current implementation
113+
// ethers.js' getDeployTransaction can't be supported as it requires the account or signer to return a signed transaction which is not possible with the current implementation
114114
}

src/provider/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export abstract class ProviderInterface {
158158

159159
/**
160160
* Invokes a function on starknet
161-
* @deprecated This method wont be supported as soon as fees are mandatory. Should not be used outside of Account class
161+
* @deprecated This method won't be supported as soon as fees are mandatory. Should not be used outside of Account class
162162
*
163163
* @param invocation the invocation object containing:
164164
* - contractAddress - the address of the contract

src/provider/sequencer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class SequencerProvider implements ProviderInterface {
196196
: [undefined, Sequencer.Endpoints[T]['REQUEST']]
197197
: Sequencer.Endpoints[T]['REQUEST'] extends never
198198
? [Sequencer.Endpoints[T]['QUERY']] // when no request is needed, we can omit the request parameter
199-
: [Sequencer.Endpoints[T]['QUERY'], Sequencer.Endpoints[T]['REQUEST']] // when both query and request are needed, we cant omit anything
199+
: [Sequencer.Endpoints[T]['QUERY'], Sequencer.Endpoints[T]['REQUEST']] // when both query and request are needed, we can't omit anything
200200
): Promise<Sequencer.Endpoints[T]['RESPONSE']> {
201201
const baseUrl = this.getFetchUrl(endpoint);
202202
const method = this.getFetchMethod(endpoint);
@@ -370,7 +370,7 @@ export class SequencerProvider implements ProviderInterface {
370370
} else if (classHash) {
371371
contractClass = await this.getClassByHash(classHash, blockIdentifier);
372372
} else {
373-
throw Error('getContractVersion require contractAddress or classHash');
373+
throw Error('getContractVersion requires contractAddress or classHash');
374374
}
375375

376376
if (isSierra(contractClass)) {

src/types/calldata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum Uint {
1313
u256 = 'core::integer::u256', // This one is struct
1414
}
1515

16-
export enum Litteral {
16+
export enum Literal {
1717
ClassHash = 'core::starknet::class_hash::ClassHash',
1818
ContractAddress = 'core::starknet::contract_address::ContractAddress',
1919
}

src/types/lib/contract/legacy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type LegacyContractClass = {
1111
};
1212

1313
/**
14-
* format produced after compile .cairo to .json
14+
* format produced after compiling .cairo to .json
1515
*/
1616
export type LegacyCompiledContract = Omit<LegacyContractClass, 'program'> & {
1717
program: Program;

0 commit comments

Comments
 (0)