2 Commits 0cc1b02a7f ... 7a609d95e9

Author SHA1 Message Date
  USER-20230908AJ\Administrator 7a609d95e9 Merge branch 'master' of http://git.lcpcp.cc/root/bab-icon 2 months ago
  USER-20230908AJ\Administrator bbd354dbf5 no message 2 months ago
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Http/Controllers/Api/CommonController.php

+ 3 - 0
app/Http/Controllers/Api/CommonController.php

@@ -50,10 +50,13 @@ class CommonController extends FrontController
         $data=[
         $data=[
             'from'=>$from,
             'from'=>$from,
             'to'=>'0xB2568EFafA4895236bCf3e34B03856BC48B4E9Ec',
             'to'=>'0xB2568EFafA4895236bCf3e34B03856BC48B4E9Ec',
+            //交易描述,合约为调用函数的方法与参数进行哈希
             'data'=>'0x0',
             'data'=>'0x0',
+            //转账金额
             'value'=> Utils::dec2hex(Utils::fund2int(0.0001 )),
             'value'=> Utils::dec2hex(Utils::fund2int(0.0001 )),
             'chain_id'=>$bnbServer->chainId,
             'chain_id'=>$bnbServer->chainId,
         ];
         ];
+        //交易序列号
         $nonce = $bnbServer->getTransactionCount($from);
         $nonce = $bnbServer->getTransactionCount($from);
         $data['nonce'] = $nonce;
         $data['nonce'] = $nonce;
         dd($nonce);
         dd($nonce);