Skip to content

Commit

Permalink
fix: enable validateMethodAndArgs on call
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Mar 10, 2022
1 parent d847fa8 commit efa63d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions __tests__/utils/utils.browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ test('isBrowser', () => {
});
describe('compressProgram()', () => {
test('compresses a contract program', () => {
const inputContract = compiledArgentAccount as any;

const compressed = stark.compressProgram(inputContract.program);
const compressed = stark.compressProgram(compiledArgentAccount.program);

expect(compressed).toMatchSnapshot();
});
Expand Down
2 changes: 1 addition & 1 deletion src/contract/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export class Contract implements ContractInterface {
assert(this.address !== null, 'contract isnt connected to an address');

// validate method and args
// this.validateMethodAndArgs('CALL', method, args);
this.validateMethodAndArgs('CALL', method, args);
const { inputs } = this.abi.find((abi) => abi.name === method) as FunctionAbi;
const inputsLength = inputs.length;
const options = {
Expand Down

0 comments on commit efa63d6

Please sign in to comment.