@whoislewys/predict-deterministic-address
v1.0.9
Published
Minimal JavaScript version of Clones.predictDeterministicAddress from OpenZeppelin
Downloads
415
Readme
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);