Skip to content

Commit

Permalink
Merge pull request #138 from lukso-network/develop
Browse files Browse the repository at this point in the history
chore: release v2.3.2
  • Loading branch information
CallumGrindle committed Jun 24, 2022
2 parents 5d50fdb + bba1453 commit e721dac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 26 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.3.2](https://github.com/lukso-network/tools-lsp-factory/compare/v2.3.1...v2.3.2) (2022-06-24)


### Fixes

* remove gas price from gas estimates ([784b530](https://github.com/lukso-network/tools-lsp-factory/commit/784b530))

### [2.3.1](https://github.com/lukso-network/tools-lsp-factory/compare/v2.3.0...v2.3.1) (2022-06-22)

### Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@lukso/lsp-factory.js",
"version": "2.3.1",
"version": "2.3.2",
"description": "Helper Library to allow simple deployments of UniversalProfiles and LSP7 and LSP8 Digital Assets.",
"main": "build/main/src/index.js",
"typings": "build/main/src/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/lib/helpers/deployment.helper.ts
Expand Up @@ -76,9 +76,7 @@ export function initialize(
switchMap(async (result) => {
const contract = await factory.attach(result.receipt.contractAddress);
const initializeParams = await initArguments(result);
const gasEstimate = await contract.estimateGas.initialize(...initializeParams, {
gasPrice: GAS_PRICE,
});
const gasEstimate = await contract.estimateGas.initialize(...initializeParams);
const transaction = await contract.initialize(...initializeParams, {
gasLimit: gasEstimate.add(GAS_BUFFER),
gasPrice: GAS_PRICE,
Expand Down
16 changes: 3 additions & 13 deletions src/lib/services/digital-asset.service.ts
Expand Up @@ -176,10 +176,7 @@ function initializeLSP7Proxy(
name,
symbol,
controllerAddress,
isNFT,
{
gasPrice: GAS_PRICE,
}
isNFT
);

const transaction = await contract[`initialize(string,string,address,bool)`](
Expand Down Expand Up @@ -321,10 +318,7 @@ function initializeLSP8Proxy(
const gasEstimate = await contract.estimateGas[`initialize(string,string,address)`](
name,
symbol,
controllerAddress,
{
gasPrice: GAS_PRICE,
}
controllerAddress
);

const transaction = await contract[`initialize(string,string,address)`](
Expand Down Expand Up @@ -520,10 +514,7 @@ export async function sendSetDataAndTransferOwnershipTransactions(
if (keysToSet && valuesToSet) {
const setDataEstimate = await digitalAsset.estimateGas['setData(bytes32[],bytes[])'](
keysToSet,
valuesToSet,
{
gasPrice: GAS_PRICE,
}
valuesToSet
);

setDataTransaction = digitalAsset['setData(bytes32[],bytes[])'](keysToSet, valuesToSet, {
Expand All @@ -545,7 +536,6 @@ export async function sendSetDataAndTransferOwnershipTransactions(
controllerAddress,
{
from: signerAddress,
gasPrice: GAS_PRICE,
}
);

Expand Down
8 changes: 1 addition & 7 deletions src/lib/services/universal-profile.service.ts
Expand Up @@ -485,17 +485,13 @@ export async function sendSetDataAndTransferOwnershipTransactions(

const setDataEstimate = await erc725Account.estimateGas['setData(bytes32[],bytes[])'](
keysToSet,
valuesToSet as BytesLike[],
{
gasPrice: GAS_PRICE,
}
valuesToSet as BytesLike[]
);

const transferOwnershipEstimate = await erc725Account.estimateGas.transferOwnership(
keyManagerAddress,
{
from: signerAddress,
gasPrice: GAS_PRICE,
}
);

Expand Down Expand Up @@ -547,7 +543,6 @@ export async function claimOwnership(

const claimOwnershipEstimate = await keyManager.estimateGas.execute(claimOwnershipPayload, {
from: signerAddress,
gasPrice: GAS_PRICE,
});

const claimOwnershipTransaction = await keyManager.execute(claimOwnershipPayload, {
Expand Down Expand Up @@ -601,7 +596,6 @@ export async function revokeSignerPermissions(
revokeSignerPermissionsPayload,
{
from: signerAddress,
gasPrice: GAS_PRICE,
}
);

Expand Down

0 comments on commit e721dac

Please sign in to comment.