Skip to content

Commit

Permalink
ALL-3800 - Fix potential memory issues in LoadBalancer - misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Smrecz committed Dec 14, 2023
1 parent 89daa0d commit c6b7775
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [4.1.34] - 2023.12.14
### Fixed
- Fix potential memory issues with `LoadBalancer`.

## [4.1.33] - 2023.12.1
### Added
- Added RPC support for the XINFIN network. Users can now make RPC calls to these network using the `Network.XINFIN` network.
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": "@tatumio/tatum",
"version": "4.1.33",
"version": "4.1.34",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
14 changes: 5 additions & 9 deletions src/e2e/tatum.fee.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ApiVersion, Network, TatumSDK } from '../service'
import { Bitcoin, Ethereum } from '../service'
import { ApiVersion, Bitcoin, Ethereum, Network, TatumSDK } from '../service'
import { Status } from '../util'

describe('Fee', () => {
Expand All @@ -11,16 +10,14 @@ describe('Fee', () => {
version: ApiVersion.V3,
})

try{
try {
const { data, status } = await tatum.fee.getCurrentFee()

expect(status).toBe(Status.SUCCESS)
expect(data.gasPrice.fast).toBeDefined()
}
finally {
} finally {
await tatum.destroy()
}

})

it('should return fee for btc testnet', async () => {
Expand All @@ -31,13 +28,12 @@ describe('Fee', () => {
version: ApiVersion.V3,
})

try{
try {
const { data, status } = await tatum.fee.getCurrentFee()
await tatum.destroy()
expect(status).toBe(Status.SUCCESS)
expect(data.fast).toBeDefined()
}
finally {
} finally {
await tatum.destroy()
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/service/rpc/evm/EvmUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export const EvmUtils = {
return true
}

const possibleArchiveMethod = POSSIBLE_ARCHIVE_METHODS.find(
(possibleArchiveMethod) => rpc.method.includes(possibleArchiveMethod.method),
const possibleArchiveMethod = POSSIBLE_ARCHIVE_METHODS.find((possibleArchiveMethod) =>
rpc.method.includes(possibleArchiveMethod.method),
)
if (possibleArchiveMethod) {
const param = rpc?.params?.[possibleArchiveMethod.index]
Expand Down

0 comments on commit c6b7775

Please sign in to comment.