Skip to content

Commit 5bd9468

Browse files
authored
Merge pull request #620 from tronprotocol/release/v5.3.4
Release/v5.3.4
2 parents 7651c7a + a73b17e commit 5bd9468

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ Contact the team at https://cn.developers.tron.network/docs/online-technical-sup
183183

184184
## Recent History
185185

186+
__5.3.4__
187+
- Fix CSP problem in the TransactionBuilder.vote function.
188+
186189
__5.3.3__
187190
- Update dependencies to address audit problems.
188191

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronweb",
3-
"version": "5.3.3",
3+
"version": "5.3.4",
44
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
55
"main": "dist/TronWeb.node.js",
66
"keywords": [

src/lib/transactionBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ export default class TransactionBuilder {
10031003
value: voteCount,
10041004
msg: 'Invalid vote count provided for SR: ' + srAddress
10051005
}
1006-
]))
1006+
], callback))
10071007
return invalid = true;
10081008

10091009
return {

src/paramValidator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class Validator {
2121
return param.msg || `${param.names[0]} can not be equal to ${param.names[1]}`;
2222
}
2323

24-
notValid(params = [], callback = new Function) {
24+
notValid(params = [], callback = () => {}) {
2525

2626
let normalized = {};
2727
let no = false;

0 commit comments

Comments
 (0)