fix: es modules syntax for buffer deps instead of commonjs require

This commit is contained in:
2024-03-24 13:05:22 -06:00
parent 12d81b79c7
commit 5dead960ae
3 changed files with 4 additions and 7 deletions

View File

@@ -12,8 +12,7 @@ import { deriveAddress, generateSeed, newIdentifier } from "@/libs/crypto";
import { GenericServerRecord, containsHiddenDid } from "@/libs/endorserServer";
import * as serverUtil from "@/libs/endorserServer";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Buffer = require("buffer/").Buffer;
import { Buffer } from "buffer/";
// If you edit this, check that the numbers still line up on the side in the alert (on mobile, too),
// and make sure they can take all actions while the notification shows.