Skip to content

Commit

Permalink
fix quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik0329 committed Jun 21, 2024
1 parent 79d9875 commit 33bc46c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/private-data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ethers } from "ethers";
import { StandardMerkleTree } from "@openzeppelin/merkle-tree";
import {ethers} from 'ethers';
import {StandardMerkleTree} from '@openzeppelin/merkle-tree';

export type FullMerkleDataTree = {
root: string;
Expand Down Expand Up @@ -30,18 +30,18 @@ export type MerkleValueWithSalt = MerkleValue & { salt: string };
export type EncodedMerkleValue = [string, string, string, string];

const merkleValueAbiEncoding: EncodedMerkleValue = [
"string",
"string",
"bytes",
"bytes32",
'string',
'string',
'bytes',
'bytes32',
];

export class PrivateData {
private tree: StandardMerkleTree<EncodedMerkleValue>;
private values: MerkleValueWithSalt[];

constructor(values: MerkleValue[] | MerkleValueWithSalt[]) {
if (values.some((v) => v.hasOwnProperty("salt"))) {
if (values.some((v) => Object.prototype.hasOwnProperty.call(v, 'salt'))) {
this.values = values as MerkleValueWithSalt[];
} else {
this.values = values.map((v) => ({
Expand Down

0 comments on commit 33bc46c

Please sign in to comment.