Skip to content

Commit

Permalink
Merge pull request #144 from tronprotocol/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
llwslc authored Feb 20, 2021
2 parents df30030 + a7cd43f commit 46a6d28
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ In order to contribute you can

## Recent History

__3.2.5__
- Set feeLimit max value as 5000 TRX

__3.2.4__
- Set feeLimit default value as 150 TRX

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tronweb",
"version": "3.2.4",
"version": "3.2.5",
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
"main": "dist/TronWeb.node.js",
"scripts": {
Expand Down
9 changes: 5 additions & 4 deletions src/lib/sidechain.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import injectpromise from 'injectpromise';
import Validator from 'paramValidator';

const MAX_FEE_LIMIT = 5_000_000_000;
export default class SideChain {
constructor(sideOptions, TronWeb = false, mainchain = false, privateKey = false) {
this.mainchain = mainchain;
Expand Down Expand Up @@ -212,7 +213,7 @@ export default class SideChain {
type: 'integer',
value: feeLimit,
gte: 0,
lte: 1_000_000_000
lte: MAX_FEE_LIMIT
}
], callback)) {
return;
Expand Down Expand Up @@ -268,7 +269,7 @@ export default class SideChain {
type: 'integer',
value: feeLimit,
gte: 0,
lte: 1_000_000_000
lte: MAX_FEE_LIMIT
},
{
name: 'tokenId',
Expand Down Expand Up @@ -339,7 +340,7 @@ export default class SideChain {
type: 'integer',
value: feeLimit,
gte: 0,
lte: 1_000_000_000
lte: MAX_FEE_LIMIT
},
{
name: 'contractAddress',
Expand Down Expand Up @@ -512,7 +513,7 @@ export default class SideChain {
type: 'integer',
value: feeLimit,
gte: 0,
lte: 1_000_000_000
lte: MAX_FEE_LIMIT
}
], callback)) {
return;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/transactionBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export default class TransactionBuilder {
type: 'integer',
value: feeLimit,
gt: 0,
lte: 1_000_000_000
lte: 5_000_000_000
},
{
name: 'callValue',
Expand Down Expand Up @@ -774,7 +774,7 @@ export default class TransactionBuilder {
type: 'integer',
value: feeLimit,
gt: 0,
lte: 1_000_000_000
lte: 5_000_000_000
},
{
name: 'callValue',
Expand Down

0 comments on commit 46a6d28

Please sign in to comment.