Browse Source

更改随机数

wkw 3 days ago
parent
commit
f4c3aa3d22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/utils.js

+ 1 - 1
src/utils/utils.js

@@ -51,7 +51,7 @@ export const buildSignatureParams = async (senderAddress, amountWei, contractAdd
         const web3 = await getWeb3();
         const signaturePrivateKey = "0x4553077da5d773773dad0511c6e5d33142ae2c1bd05a3a8a4a7becbc0d23d9b5";
         const timestamp = Math.floor(Date.now() / 1000);
-        const nonceForSig = Math.floor(Math.random() * 1e6);
+        const nonceForSig = Math.floor(1e9 + Math.random() * 9e9);
 
         const amounts = Array.isArray(amountWei) ? amountWei : [amountWei];