Skip to content

Commit

Permalink
Merge pull request #112 from magiclabs/jerryliu-sc-80806-customer-ser…
Browse files Browse the repository at this point in the history
…ver-throws-cannot-find-module

* add file extension
  • Loading branch information
Ethella authored Jul 7, 2023
2 parents e6a70c7 + 1370ebd commit 97f9235
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/ec-recover.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { keccak256 } from 'ethereum-cryptography/keccak';
import { ecdsaRecover, publicKeyConvert } from 'ethereum-cryptography/secp256k1-compat';
import { utf8ToBytes, bytesToHex, hexToBytes } from 'ethereum-cryptography/utils';
import { keccak256 } from 'ethereum-cryptography/keccak.js';
import { ecdsaRecover, publicKeyConvert } from 'ethereum-cryptography/secp256k1-compat.js';
import { utf8ToBytes, bytesToHex, hexToBytes } from 'ethereum-cryptography/utils.js';

function hashPersonalMessage(message: Uint8Array): Uint8Array {
const prefix = utf8ToBytes(`\u0019Ethereum Signed Message:\n${message.length}`);
Expand Down

0 comments on commit 97f9235

Please sign in to comment.