From 6f99e115fccd0d35da3c5071c76bc741886feb74 Mon Sep 17 00:00:00 2001 From: ququzone Date: Mon, 9 Oct 2023 09:56:38 +0800 Subject: [PATCH] import buffer --- package.json | 2 +- src/p256.ts | 1 + test/secp256r1.spec.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d06ca4..75fa730 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smart-accounts", - "version": "0.1.4", + "version": "0.1.5", "author": "ququzone ", "license": "MIT", "scripts": { diff --git a/src/p256.ts b/src/p256.ts index d37d38d..9427880 100644 --- a/src/p256.ts +++ b/src/p256.ts @@ -1,4 +1,5 @@ import crypto from 'crypto' +import { Buffer } from 'buffer' import { bufferToHex, sha256 } from 'ethereumjs-util' import { BytesLike, defaultAbiCoder } from 'ethers/lib/utils' import { Signer } from './userop-builder' diff --git a/test/secp256r1.spec.ts b/test/secp256r1.spec.ts index 234f866..34e5de3 100644 --- a/test/secp256r1.spec.ts +++ b/test/secp256r1.spec.ts @@ -1,5 +1,6 @@ import { expect } from 'chai' import { ethers } from 'hardhat' +import { Buffer } from 'buffer' // @ts-ignore import ecPem from 'ec-pem' import crypto from 'crypto'