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.24 to 2.1.25

2

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

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

@@ -550,3 +550,5 @@ import TronWeb from 'index';

frozenDuration = 0,
voteScore
// for now there is no default for the following values
voteScore,
precision
} = options;

@@ -596,6 +598,9 @@

if(utils.isNotNullOrUndefined(voteScore) && (!utils.isInteger(voteScore) || voteScore < 0))
return callback('voteScore must be a positive integer');
if(utils.isNotNullOrUndefined(voteScore) && (!utils.isInteger(voteScore) || voteScore <= 0))
return callback('voteScore must be a positive integer greater than 0');
this.tronWeb.fullNode.request('wallet/createassetissue', {
if(utils.isNotNullOrUndefined(precision) && (!utils.isInteger(precision) || precision <= 0 || precision > 6))
return callback('precision must be a positive integer > 0 and <= 6');
const data = {
owner_address: this.tronWeb.address.toHex(issuerAddress),

@@ -609,3 +614,2 @@ name: this.tronWeb.fromUtf8(name),

num: parseInt(tokenRatio),
vote_score: parseInt(voteScore),
start_time: parseInt(saleStart),

@@ -619,3 +623,11 @@ end_time: parseInt(saleEnd),

}
}, 'post').then(transaction => transactionResultManager(transaction, callback)).catch(err => callback(err));
}
if (precision && !isNaN(parseInt(precision))) {
data.precision = parseInt(precision);
}
if (voteScore && !isNaN(parseInt(voteScore))) {
data.vote_score = parseInt(voteScore)
}
this.tronWeb.fullNode.request('wallet/createassetissue', data, 'post').then(transaction => transactionResultManager(transaction, callback)).catch(err => callback(err));
}

@@ -622,0 +634,0 @@

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