From 45677cefcf8320159e4238adfdff5f2508502092 Mon Sep 17 00:00:00 2001 From: LidamaoHub Date: Thu, 26 Oct 2023 19:33:47 +0800 Subject: [PATCH 1/4] update --- .gitignore | 8 ++++++++ packages/client/src/pages/test/index.jsx | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 66b40d82..ec7ff3d4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,11 @@ node_modules packages/contracts/src/codegen/ pnpm-lock.yaml packages/contracts/worlds.json +.DS_Store +# worlds.json +packages/contracts/deploys/**/*.json +packages/contracts/cache/* +packages/contracts/out/* +packages/contracts/node_modules/* +packages/contracts/broadcast/* +packages/contracts/types/* diff --git a/packages/client/src/pages/test/index.jsx b/packages/client/src/pages/test/index.jsx index 47312a47..024101a7 100644 --- a/packages/client/src/pages/test/index.jsx +++ b/packages/client/src/pages/test/index.jsx @@ -18,7 +18,7 @@ const Test = () => { const [stepData, setStepData] = useState([]); const [transferData, setTransferData] = useState([]); const [battleData, setBattleData] = useState([]); - const [confirmBattleData, setConfirmBattleData] = useState(['Attack', 1]); + const [confirmBattleData, setConfirmBattleData] = useState(['attack', 1]); const [battlesData, setBattlesData] = useState([]); const [boxData, setBoxData] = useState([]); const [boxId, setBoxId] = useState([]); @@ -40,7 +40,7 @@ const Test = () => { // console.log(wallet, 'wallet') // // 转账到0x6B5A3EF0cEdDE6f8266eCcb7971a6dbdE9D93D44 // wallet.sendTransaction({ - // to: '0x6B5A3EF0cEdDE6f8266eCcb7971a6dbdE9D93D44', + // to: '0x74F750d72009B2a70aAe2F934B0F0C1F4015A037', // value: ethers.utils.parseEther('1') // }).then(res => { // console.log(res, 'res') @@ -103,6 +103,7 @@ const Test = () => { let wallet = new ethers.Wallet(privateKey, provider) console.log(wallet) let userContractAddress = contractAddress + console.log("userContractAddress",userContractAddress) let userContract = new ethers.Contract(userContractAddress, abi, wallet) console.log(userContract) userContract.mint().then(async res => { @@ -388,8 +389,8 @@ const Test = () => {
攻击策略