Socket
Socket
Sign inDemoInstall

@mean-finance/deterministic-factory

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mean-finance/deterministic-factory - npm Package Compare versions

Comparing version 1.12.0 to 1.12.1

2

package.json
{
"name": "@mean-finance/deterministic-factory",
"version": "1.12.0",
"version": "1.12.1",
"description": "Deterministic contracts's addresses factory",

@@ -5,0 +5,0 @@ "keywords": [

@@ -80,21 +80,30 @@ import hre, { ethers } from 'hardhat';

const deploymentAddress = await deterministicFactory.getDeployed(saltAsBytes);
const deployedBytecode = await ethers.provider.getCode(deploymentAddress);
await deterministicFactory.connect(deployerSigner).callStatic.deploy(
saltAsBytes, // SALT
creationCode,
0, // Value
{ ...overrides }
);
let receipt: any;
if (!existingDeployment && deployedBytecode !== '0x') {
// For some reason previous deployment wasn't saved
if (log) console.log(`deployment "${name}" at ${deploymentAddress} was not saved, re-fetching`);
} else {
await deterministicFactory.connect(deployerSigner).callStatic.deploy(
saltAsBytes, // SALT
creationCode,
0, // Value
{ ...overrides }
);
const deploymentTx = await deterministicFactory.connect(deployerSigner).deploy(
saltAsBytes, // SALT
creationCode,
0, // Value
{ ...overrides }
);
if (log) console.log(`deploying "${name}" (tx: ${deploymentTx.hash}) at ${deploymentAddress}`);
receipt = await deploymentTx.wait();
}
const deploymentTx = await deterministicFactory.connect(deployerSigner).deploy(
saltAsBytes, // SALT
creationCode,
0, // Value
{ ...overrides }
);
if (log) console.log(`deploying "${name}" (tx: ${deploymentTx.hash}) at ${deploymentAddress}`);
const receipt = await deploymentTx.wait();
const deployment = await hre.deployments.buildDeploymentSubmission({

@@ -101,0 +110,0 @@ name,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc