Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix errors in code #1321

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions __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 Expand Up @@ -635,7 +635,7 @@ describe('validateFields', () => {
).toThrow(error);
});

test('should throw an error if value 0 iz provided for any uint type', () => {
test('should throw an error if value 0 is provided for any uint type', () => {
const error = new Error('Validate: value 0 is not authorized in NonZero uint type.');

expect(() =>
Expand Down