WIN-2308041133\Administrator 6 months ago
parent
commit
f5ee63a33a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      vendor/fenguoz/tron-php/src/TRC20.php

+ 3 - 2
vendor/fenguoz/tron-php/src/TRC20.php

@@ -27,9 +27,10 @@ class TRC20 extends TRX
 
     public function balance(Address $address)
     {
-        $format = Formatter::toAddressFormat($address->hexAddress);
+        $hexAddress = substr($address->address, 2);
+        $format = Formatter::toAddressFormat($hexAddress);
 
-        var_dump($this->contractAddress->hexAddress);
+//        var_dump($this->contractAddress->hexAddress);
         var_dump($format);
         var_dump($address->hexAddress);
         $body = $this->_api->post('/wallet/triggersmartcontract', [