Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/utils/calldata/requestParser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() =>
Expand Down
2 changes: 1 addition & 1 deletion __tests__/utils/calldata/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() =>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/calldata/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading