diff --git a/src/TronAwareTrait.php b/src/TronAwareTrait.php index 66711fa..2be76b3 100644 --- a/src/TronAwareTrait.php +++ b/src/TronAwareTrait.php @@ -114,10 +114,10 @@ public function fromTron($amount): float { * Convert float to trx format * * @param $double - * @return int + * @return double */ - public function toTron($double): int { - return (int) bcmul((string)$double, (string)1e6,0); + public function toTron($double) { + return $double; } /** @@ -132,4 +132,4 @@ public function sha3($string, $prefix = true) { return ($prefix ? '0x' : ''). Keccak::hash($string, 256); } -} \ No newline at end of file +}