Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eip-712

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eip-712 - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/cjs/eip-712.js

@@ -65,3 +65,3 @@ "use strict";

if (field.type === 'bytes') {
return [[...previousTypes, 'bytes32'], [...previousValues, (0, _utils.keccak256)(value, 'hex')]];
return [[...previousTypes, 'bytes32'], [...previousValues, (0, _utils.keccak256)(Buffer.isBuffer(value) ? value : (0, _utils.toBuffer)(value), 'hex')]];
}

@@ -68,0 +68,0 @@

@@ -46,3 +46,3 @@ import { defaultAbiCoder } from '@ethersproject/abi';

if (field.type === 'bytes') {
return [[...previousTypes, 'bytes32'], [...previousValues, keccak256(value, 'hex')]];
return [[...previousTypes, 'bytes32'], [...previousValues, keccak256(Buffer.isBuffer(value) ? value : toBuffer(value), 'hex')]];
}

@@ -49,0 +49,0 @@

{
"name": "eip-712",
"version": "0.2.0",
"version": "0.2.1",
"description": "Utility functions that can help with signing and verifying EIP-712 based messages",

@@ -5,0 +5,0 @@ "author": "Maarten Zuidhoorn <maarten@zuidhoorn.com>",

@@ -106,3 +106,3 @@ import { defaultAbiCoder } from '@ethersproject/abi';

[...previousTypes, 'bytes32'],
[...previousValues, keccak256(value as Buffer, 'hex')]
[...previousValues, keccak256(Buffer.isBuffer(value) ? value : toBuffer(value as string), 'hex')]
];

@@ -109,0 +109,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc