New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tronweb

Package Overview
Dependencies
Maintainers
4
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tronweb - npm Package Compare versions

Comparing version 2.1.27 to 2.1.29

2

package.json
{
"name": "tronweb",
"version": "2.1.27",
"version": "2.1.29",
"description": "JavaScript SDK that encapsulates the TRON Node HTTP API",

@@ -5,0 +5,0 @@ "main": "dist/TronWeb.node.js",

@@ -258,3 +258,3 @@ import providers from 'lib/providers';

return utils.crypto.getBase58CheckAddress(
utils.code.hexStr2byteArray(address)
utils.code.hexStr2byteArray(address.replace(/^0x/,'41'))
);

@@ -261,0 +261,0 @@ },

@@ -175,4 +175,7 @@ import TronWeb from 'index';

if(!contract.result)
return callback('Unknown error: ' + JSON.stringify(contract, null, 2));
if(contract.code)
return callback({
error: contract.code,
message: this.tronWeb.toUtf8(contract.message)
})

@@ -179,0 +182,0 @@ return this.at(signedTransaction.contract_address, callback);

@@ -203,4 +203,7 @@ import utils from 'utils';

if(!broadcast.result)
return callback('Unknown error: ' + JSON.stringify(broadcast, null, 2));
if(broadcast.code)
return callback({
error: broadcast.code,
message: this.tronWeb.toUtf8(broadcast.message)
})

@@ -207,0 +210,0 @@ if(!options.shouldPollResponse)

@@ -397,2 +397,5 @@ import TronWeb from 'index';

if (utils.isInteger(tokenID))
tokenID = tokenID.toString()
if(!utils.isString(tokenID) || !tokenID.length)

@@ -723,2 +726,5 @@ return callback('Invalid token ID provided');

if (utils.isInteger(tokenID))
tokenID = tokenID.toString()
if(!utils.isString(tokenID))

@@ -1068,2 +1074,5 @@ return callback('Invalid token ID provided');

if (utils.isInteger(tokenID))
tokenID = tokenID.toString()
if(!utils.isString(tokenID) || !tokenID.length)

@@ -1086,2 +1095,5 @@ return callback('Invalid token ID provided');

if (utils.isInteger(tokenID))
tokenID = tokenID.toString()
if(!utils.isString(tokenID) || !tokenID.length)

@@ -1088,0 +1100,0 @@ return callback('Invalid token ID provided');

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc