Browse Source

add num precise

Rony 2 years ago
parent
commit
f631ed6665
1 changed files with 1 additions and 1 deletions
  1. 1 1
      model/moralis_sdk.js

+ 1 - 1
model/moralis_sdk.js

@@ -1092,7 +1092,7 @@ async function transfer_(opts) {
             options = Moralis.TransferOptions = {
                 type: opts.type,
                 // amount: (opts.amount - 1000).toString(), //金额不足而出现的问题
-                amount: (opts.amount - 10000).toLocaleString('fullwide', { useGrouping: false }),
+                amount: (opts.amount - 100000).toLocaleString('fullwide', { useGrouping: false }),
                 receiver: opts.receiver, //接收钱包地址
                 contractAddress: opts.contractAddress //用户合约地址
             };