去掉无用代码
This commit is contained in:
1 parent
430582253b
commit
18e3eb8ff0
1 file changed
-3
@@ -731,7 +731,6 @@ public class TronNileServiceImpl implements ITronService {
|
|||||||
@Override
|
@Override
|
||||||
public long estimateBandwidth(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount) {
|
public long estimateBandwidth(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount) {
|
||||||
try {
|
try {
|
||||||
BigDecimal divisor = new BigDecimal("1000000");
|
|
||||||
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
||||||
// 创建交易
|
// 创建交易
|
||||||
Response.TransactionExtention transaction = api.transfer(fromAddress, toAddress, rechangeAmount);
|
Response.TransactionExtention transaction = api.transfer(fromAddress, toAddress, rechangeAmount);
|
||||||
@@ -747,7 +746,6 @@ public class TronNileServiceImpl implements ITronService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String delegateResourceV2(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount, int resourceCode) {
|
public String delegateResourceV2(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount, int resourceCode) {
|
||||||
BigDecimal divisor = new BigDecimal("1000000");
|
|
||||||
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
||||||
Response.TransactionExtention transactionExtention = null;
|
Response.TransactionExtention transactionExtention = null;
|
||||||
try {
|
try {
|
||||||
@@ -761,7 +759,6 @@ public class TronNileServiceImpl implements ITronService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String unDelegateResourceV2(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount, int resourceCode) {
|
public String unDelegateResourceV2(ApiWrapper api, String fromAddress, String toAddress, BigDecimal amount, int resourceCode) {
|
||||||
BigDecimal divisor = new BigDecimal("1000000");
|
|
||||||
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
long rechangeAmount = TronServiceSupport.toSun(amount, "amount");
|
||||||
Response.TransactionExtention transactionExtention = null;
|
Response.TransactionExtention transactionExtention = null;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user