| | |
| | | } |
| | | |
| | | public String tokenTransferFrom(String privateKey, String fromAddress, String toAddress, String amount) throws ExecutionException, InterruptedException { |
| | | String gas = getGas(); |
| | | // String gas = getGas(); |
| | | String gas = "5"; |
| | | |
| | | BigDecimal amountPow = new BigDecimal(amount).multiply(BigDecimal.TEN.pow(decimals())); |
| | | amount = amountPow.toPlainString(); |
| | |
| | | |
| | | @Override |
| | | public String transferBaseToken(String address, BigDecimal amount) { |
| | | // String gas = getGas(); |
| | | String gas ="5"; |
| | | String gas = getGas(); |
| | | // String gas ="5"; |
| | | try { |
| | | Credentials credentials = Credentials.create(privateKey); |
| | | |