Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
icyfry committed May 12, 2024
1 parent 2f2492b commit e45e2ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Sandbox Foundry

<img src="https://img.shields.io/badge/solidity-0.8.13-005850?style=flat"> <img src="https://img.shields.io/badge/Vue.js-35495E?logo=vuedotjs&logoColor=4FC08D" /> <img src="https://img.shields.io/badge/-Ethereum-005850?style=flat&logo=Ethereum">
[![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/)

Expand All @@ -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
Expand Down Expand Up @@ -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/
5 changes: 2 additions & 3 deletions dapp/src/utils/web3utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Web3Utils {

async getCryptozombiesBroadcastLocal(): Promise<any> {
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: [
{
Expand All @@ -31,12 +31,11 @@ export class Web3Utils {
}
]
};
return fundmeBroadcastLocal;
return cryptozombiesBroadcastLocal;
}

async getFundmeBroadcastLocal(): Promise<any> {
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: [
{
Expand Down

0 comments on commit e45e2ed

Please sign in to comment.