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(() => 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(() => 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,