Skip to content

Commit 4b131bb

Browse files
authored
Merge pull request #374 from tronprotocol/release/v5.2.0
Release/v5.2.0
2 parents 8592538 + 9250f72 commit 4b131bb

File tree

10 files changed

+956
-335
lines changed

10 files changed

+956
-335
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ coverage
77
scripts
88
src
99
demo
10+
.vscode

README.md

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

184184
## Recent History
185185

186+
__5.2.0__
187+
- Support build transactions locally with protobuf
188+
- Support multi-sign for `setAccountId`, `updateBrokerage`, `clearABI`, `updateAccountPermissions` function in `transactionBuilder` lib
189+
186190
__5.1.0__
187191
- Add `freezeBalanceV2`, `unfreezeBalanceV2`, `delegateResource`, `undelegateResource` and `withdrawExpireUnfreeze` function in transactiobBuiler lib to support stakeV2
188192
- Support `tronWeb.transactionBuilder.estimateEnergy` to estimate energy for triggersmartcontract transaction

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronweb",
3-
"version": "5.1.0",
3+
"version": "5.2.0",
44
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
55
"main": "dist/TronWeb.node.js",
66
"keywords": [
@@ -28,12 +28,12 @@
2828
},
2929
"dependencies": {
3030
"@babel/runtime": "^7.0.0",
31+
"@tronweb3/google-protobuf": "^3.21.2",
3132
"axios": "^0.26.1",
3233
"bignumber.js": "^9.0.1",
3334
"elliptic": "^6.5.4",
34-
"ethers": "^5.4.4",
35+
"ethers": "^5.7.2",
3536
"eventemitter3": "^3.1.0",
36-
"@tronweb3/google-protobuf": "^3.21.2",
3737
"injectpromise": "^1.0.0",
3838
"lodash": "^4.17.21",
3939
"semver": "^5.6.0",

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SideChain from 'lib/sidechain';
1515
import { keccak256 } from 'utils/ethersUtils';
1616
import { ADDRESS_PREFIX, TRON_BIP39_PATH_INDEX_0 } from 'utils/address';
1717

18-
const DEFAULT_VERSION = '3.5.0';
18+
const DEFAULT_VERSION = '4.7.1';
1919

2020
const FEE_LIMIT = 150000000;
2121

@@ -180,8 +180,6 @@ export default class TronWeb extends EventEmitter {
180180

181181
this.fullNode = fullNode;
182182
this.fullNode.setStatusPage('wallet/getnowblock');
183-
184-
this.getFullnodeVersion();
185183
}
186184

187185
setSolidityNode(solidityNode) {

0 commit comments

Comments
 (0)