Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 695 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 695 Bytes

Predict Deterministic Address

Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin

Usage

Installation:

npm i viem predict-deterministic-address

Usage:

import { predictDeterministicAddress } from '@whoislewys/predict-deterministic-address';
import { zeroAddress } from 'viem';

// Mock values for implementation, salt, and deployer
const implementation = zeroAddress;
const salt = 69n;
const deployer = zeroAddress;

const predictedAddress = predictDeterministicAddress(implementation, salt, deployer);