fix: endpoint check

This commit is contained in:
Rafael Taranto 2023-09-13 17:52:04 +01:00
parent 7e8c49cf45
commit 8c66c67a04

View file

@ -4,8 +4,6 @@ const base = require('../tron/base')
const NAME = 'trongrid'
function run (account) {
if (!account.endpoint) throw new Error('Need to configure API endpoint for trongrid')
const endpoint = 'https://api.trongrid.io'
base.connect({ ...account, endpoint })