diff --git a/README.md b/README.md index f8c4d49..720e81c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Sandbox Foundry -[![Build](https://github.com/icyfry/sandbox-cryptozombies-foundry/actions/workflows/build.yml/badge.svg)](https://github.com/icyfry/sandbox-cryptozombies-foundry/actions/workflows/build.yml) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=icyfry_sandbox-cryptozombies-foundry&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=icyfry_sandbox-cryptozombies-foundry) +[![Build](https://github.com/icyfry/sandbox-foundry/actions/workflows/build.yml/badge.svg)](https://github.com/icyfry/sandbox-foundry/actions/workflows/build.yml) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=icyfry_sandbox-foundry&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=icyfry_sandbox-foundry) This repository contains source codes for experimentation with [Foundry](https://github.com/foundry-rs) and [Vue.js](https://vuejs.org/) @@ -22,6 +22,11 @@ source ~/.bashrc foundryup ``` +[Creating a new foundry project](https://book.getfoundry.sh/projects/creating-a-new-project) +``` +forge init +``` + Install OpenZeppelin ``` forge install OpenZeppelin/openzeppelin-contracts --no-commit @@ -87,6 +92,8 @@ task frontend-build frontend-run * https://github.com/foundry-rs/foundry * https://book.getfoundry.sh/ * https://docs.soliditylang.org/en/v0.8.23/ -* https://updraft.cyfrin.io/courses/foundry +* Cyfrin + * https://updraft.cyfrin.io/courses/foundry + * https://updraft.cyfrin.io/courses/advanced-foundry * https://github.com/ChainSafe/web3js-example-react-app * https://docs.web3js.org/ \ No newline at end of file diff --git a/dapp/src/utils/web3utils.ts b/dapp/src/utils/web3utils.ts index d9ae3ef..185b65a 100644 --- a/dapp/src/utils/web3utils.ts +++ b/dapp/src/utils/web3utils.ts @@ -22,7 +22,7 @@ export class Web3Utils { async getCryptozombiesBroadcastLocal(): Promise { console.log(process.env.NODE_ENV); - if (process.env.NODE_ENV !== 'development') throw new Error("Not in development mode"); + // if (process.env.NODE_ENV !== 'development') throw new Error("Not in development mode"); cryptozombiesBroadcastLocal = { transactions: [ { @@ -31,12 +31,11 @@ export class Web3Utils { } ] }; - return fundmeBroadcastLocal; return cryptozombiesBroadcastLocal; } async getFundmeBroadcastLocal(): Promise { - if (process.env.NODE_ENV !== 'development') throw new Error("Not in development mode"); + // if (process.env.NODE_ENV !== 'development') throw new Error("Not in development mode"); fundmeBroadcastLocal = { transactions: [ {