From 92f5a13eedcf1d6d267fbadf6054bb3bff3dec84 Mon Sep 17 00:00:00 2001 From: Jonathan Le Brun <42697488+icyfry@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:42:09 +0200 Subject: [PATCH] Cryptozombies update --- contracts/script/DeployZombieOwnership.s.sol | 2 - dapp/src/App.vue | 8 +-- dapp/src/components/CryptoZombiesView.vue | 32 ++++----- dapp/src/tests/web3.test.ts | 4 +- dapp/src/utils/web3utils.ts | 70 +++++++++++++++++--- 5 files changed, 79 insertions(+), 37 deletions(-) diff --git a/contracts/script/DeployZombieOwnership.s.sol b/contracts/script/DeployZombieOwnership.s.sol index 1cfa42d..9b8d1a8 100644 --- a/contracts/script/DeployZombieOwnership.s.sol +++ b/contracts/script/DeployZombieOwnership.s.sol @@ -9,10 +9,8 @@ contract DeployZombieOwnership is Script { function run() public { vm.startBroadcast(); - ZombieOwnership zombieownership = new ZombieOwnership(); console.log("ZombieOwnership deployed at address: ", address(zombieownership)); - vm.stopBroadcast(); } } diff --git a/dapp/src/App.vue b/dapp/src/App.vue index c58b0dc..aa092a2 100644 --- a/dapp/src/App.vue +++ b/dapp/src/App.vue @@ -2,7 +2,7 @@ import CryptoZombiesView from './components/CryptoZombiesView.vue' import { MetaMaskInpageProvider } from "@metamask/providers"; import { onBeforeMount, ref } from 'vue' -import Web3Utils from './utils/web3utils.ts'; +import { Web3Utils } from './utils/web3utils.ts'; // Metamask injected declare global { @@ -28,12 +28,12 @@ window.ethereum.on('accountsChanged', () => initializeApp());

Test Frontend - sandbox-cryptozombies-foundry + sandbox-foundry

- + +