Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Oct 3, 2023
1 parent d8c719e commit 0e9f363
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions packages/web3-eth-contract/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,12 +921,8 @@ export class Contract<Abi extends ContractAbi>
const arrayOfAbis: AbiFunctionFragment[] = abis.filter(
_abi => (_abi.inputs ?? []).length === params.length,
);
// eslint-disable-next-line
console.log(abi)
if (abis.length === 1 || arrayOfAbis.length === 0) {
abiParams = this._getAbiParams(methodAbi, params);
// eslint-disable-next-line
console.log(abiParams)
validator.validate(abi.inputs ?? [], abiParams);
} else {
const errors: Web3ValidationErrorObject[] = [];
Expand Down
4 changes: 0 additions & 4 deletions packages/web3-validator/src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ export class Validator {
const zod = convertToZod(schema);
const result = zod.safeParse(data);
if (!result.success) {
// eslint-disable-next-line
console.log(schema)
// eslint-disable-next-line
console.log(data)
const errors = this.convertErrors(result.error?.issues ?? []);
if (errors) {
if (options?.silent) {
Expand Down
2 changes: 0 additions & 2 deletions packages/web3-validator/src/web3_validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export class Web3Validator {
options: Web3ValidationOptions = { silent: false },
): Web3ValidationErrorObject[] | undefined {
const jsonSchema = ethAbiToJsonSchema(schema);
// eslint-disable-next-line
console.log(jsonSchema)
if (
Array.isArray(jsonSchema.items) &&
jsonSchema.items?.length === 0 &&
Expand Down

0 comments on commit 0e9f363

Please sign in to comment.