Skip to content

Commit

Permalink
revised based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jackleeio authored and 0xn1c0 committed Oct 18, 2024
1 parent 4e37be8 commit e0414b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import { ethers } from "ethers";
async function findVanityAddress(prefix, bytecode, factoryAddress) {
let salt = 0n;
while (true) {
const saltHex = ethers.zeroPadValue(ethers.hexlify(salt), 32);
const saltHex = ethers.zeroPadValue(ethers.toBeHex(salt), 32);
const address = ethers.getCreate2Address(
factoryAddress,
saltHex,
Expand Down

0 comments on commit e0414b3

Please sign in to comment.