Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MetaMask/eth-sig-util
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f52ebf74bfe9130d22ec3eb4ab47414ff315a3f2
Choose a base ref
..
head repository: MetaMask/eth-sig-util
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c3f38825130e5c9847300f647f6857f3360c0be5
Choose a head ref
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/sign-typed-data.ts
2 changes: 0 additions & 2 deletions src/sign-typed-data.ts
Original file line number Diff line number Diff line change
@@ -173,7 +173,6 @@ function encodeField(
version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4,
): [type: string, value: any] {
validateVersion(version, [SignTypedDataVersion.V3, SignTypedDataVersion.V4]);
console.log('ENCODING', types, name, type, value);

if (types[type] !== undefined) {
return [
@@ -214,7 +213,6 @@ function encodeField(
const typeValuePairs = value.map((item) =>
encodeData(parsedType, item, types, version),
);
console.log(typeValuePairs);
return ['bytes32', keccak(Buffer.concat(typeValuePairs))];
}