| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.web3j.utils.Convert; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | |
| | | } |
| | | String address = dappMemberEntity.getAddress(); |
| | | log.info("{}",address); |
| | | String hash = contractMain.trans(new BigInteger(amount.toString()),address); |
| | | BigInteger bigInteger = new BigInteger(Convert.toWei(amount.toString(), Convert.Unit.ETHER).setScale(0).toString()); |
| | | String hash = contractMain.trans(bigInteger,address); |
| | | if(StrUtil.isEmpty(hash)){ |
| | | return; |
| | | } |