Skip to content

Commit

Permalink
release: 2.0.1-alpha.362
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceri committed Nov 7, 2022
1 parent a321aee commit e030e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "tatumio",
"version": "2.0.1-alpha.361",
"version": "2.0.1-alpha.362",
"license": "MIT",
"repository": "https://github.com/tatumio/tatum-js",
"scripts": {
Expand Down
8 changes: 2 additions & 6 deletions packages/blockchain/tron/src/lib/services/tron.web.ts
@@ -1,4 +1,4 @@
import { TATUM_API_CONSTANTS } from '@tatumio/api-client'
import { OpenAPI, TATUM_API_CONSTANTS } from '@tatumio/api-client'
// tronweb lib dont have any typings (not even in @types)
// @ts-ignore
import TronWeb from 'tronweb'
Expand All @@ -13,11 +13,7 @@ export interface ITronWeb {
export const tronWeb = (): ITronWeb => {
return {
getClient: (provider?: string): TronWebClient => {
const endpoint =
provider ||
`${process.env['TATUM_API_URL'] || TATUM_API_CONSTANTS.URL}/v3/tron/node/${
TATUM_API_CONSTANTS.API_KEY
}`
const endpoint = provider || `${OpenAPI.BASE}/v3/tron/node/${TATUM_API_CONSTANTS.API_KEY}`

const HttpProvider = TronWeb.providers.HttpProvider

Expand Down

0 comments on commit e030e3d

Please sign in to comment.