Skip to content

Commit

Permalink
chore(release): 2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 3, 2023
1 parent 5877a78 commit 4af0362
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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.4.3](https://github.com/lifinance/sdk/compare/v2.4.1...v2.4.3) (2023-10-03)


### Bug Fixes

* wallet analytics API request changes ([#167](https://github.com/lifinance/sdk/issues/167)) ([e4a145d](https://github.com/lifinance/sdk/commit/e4a145de96ef986b8ea52134cfb095d4a5fc5f44))

### [2.4.2](https://github.com/lifinance/sdk/compare/v2.4.1...v2.4.2) (2023-10-03)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/sdk",
"version": "2.4.2",
"version": "2.4.3",
"description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
"main": "./dist/cjs/index.js",
"module": "./dist/index.js",
Expand Down
5 changes: 2 additions & 3 deletions src/allowance/checkAllowance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ export const checkAllowance = async (
}

if (settings.updateTransactionRequestHook) {
const config = await settings.updateTransactionRequestHook(
approvalRequest
)
const config =
await settings.updateTransactionRequestHook(approvalRequest)

approvalRequest.gasLimit = config.gasLimit
approvalRequest.gasPrice = config.gasPrice
Expand Down
15 changes: 6 additions & 9 deletions src/execution/StepExecutionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,8 @@ export class StepExecutionManager {
// Create new transaction
if (!step.transactionRequest) {
const personalizedStep = await personalizeStep(signer, step)
const updatedStep = await ApiService.getStepTransaction(
personalizedStep
)
const updatedStep =
await ApiService.getStepTransaction(personalizedStep)
const comparedStep = await stepComparison(
statusManager,
personalizedStep,
Expand Down Expand Up @@ -224,9 +223,8 @@ export class StepExecutionManager {
transactionRequest.maxFeePerGas = customConfig.maxFeePerGas
} else {
try {
const estimatedGasLimit = await signer.estimateGas(
transactionRequest
)
const estimatedGasLimit =
await signer.estimateGas(transactionRequest)

if (estimatedGasLimit) {
transactionRequest.gasLimit = BigNumber.from(
Expand All @@ -249,9 +247,8 @@ export class StepExecutionManager {
shouldBatchTransactions &&
config.multisigConfig?.sendBatchTransaction
) {
const { to, data, value } = await signer.populateTransaction(
transactionRequest
)
const { to, data, value } =
await signer.populateTransaction(transactionRequest)

const isValidTransaction = to && data

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const name = '@lifi/sdk'
export const version = '2.4.2'
export const version = '2.4.3'

0 comments on commit 4af0362

Please sign in to comment.