From e1ac84de62cb07174c9932d5c8a4baef7a449493 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:02:39 +0300 Subject: [PATCH 1/3] Update validate.ts --- src/utils/calldata/validate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/calldata/validate.ts b/src/utils/calldata/validate.ts index b79613119..f99247ed5 100644 --- a/src/utils/calldata/validate.ts +++ b/src/utils/calldata/validate.ts @@ -405,7 +405,7 @@ const validateNonZero = (parameter: any, input: AbiEntry) => { * }; * * validateFields(functionAbi, [1n], abiStructs, abiEnums); // Returns void since validation passes - * validateFields(functionAbi, [{}], abiStructs, abiEnums); // Throw an error because paramters are not valid + * validateFields(functionAbi, [{}], abiStructs, abiEnums); // Throw an error because parameters are not valid */ export default function validateFields( abiMethod: FunctionAbi, From 89f0c2c09a493103692d3e37f3c4b72207393427 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:03:48 +0300 Subject: [PATCH 2/3] Update validate.test.ts --- __tests__/utils/calldata/validate.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/utils/calldata/validate.test.ts b/__tests__/utils/calldata/validate.test.ts index 3110e4d3e..363eaf78e 100644 --- a/__tests__/utils/calldata/validate.test.ts +++ b/__tests__/utils/calldata/validate.test.ts @@ -393,7 +393,7 @@ describe('validateFields', () => { expect(result).toBeUndefined(); }); - test('should throw an error if tupple validation fails', () => { + test('should throw an error if tuple validation fails', () => { const error = new Error(`Validate: arg test should be a tuple (defined as object)`); expect(() => From 3ccf037f916ab8486e11269ce0d94b9899ad2ead Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:04:12 +0300 Subject: [PATCH 3/3] Update requestParser.test.ts --- __tests__/utils/calldata/requestParser.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/utils/calldata/requestParser.test.ts b/__tests__/utils/calldata/requestParser.test.ts index 49ddbe3ef..ad805f8b7 100644 --- a/__tests__/utils/calldata/requestParser.test.ts +++ b/__tests__/utils/calldata/requestParser.test.ts @@ -196,7 +196,7 @@ describe('requestParser', () => { expect(parsedField).toEqual(['1', '27988542884245108']); }); - test('should throw an error for Custon Enum type when there is not active variant', () => { + test('should throw an error for Custom Enum type when there is not active variant', () => { const args = [new CairoCustomEnum({ test: 'content' })]; const argsIterator = args[Symbol.iterator](); expect(() =>