Swap-Aggregator-Subgraph/node_modules/@ethersproject/hash/src.ts/id.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

7 lines
195 B
TypeScript

import { keccak256 } from "@ethersproject/keccak256";
import { toUtf8Bytes } from "@ethersproject/strings";
export function id(text: string): string {
return keccak256(toUtf8Bytes(text));
}