Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from erhant/erhant/transferFrom
Browse files Browse the repository at this point in the history
`transferFrom` and approval stuff + better macro structure
  • Loading branch information
erhant authored Oct 14, 2023
2 parents 2fc3465 + 090e7e4 commit dc93eaa
Show file tree
Hide file tree
Showing 10 changed files with 348 additions and 123 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: tests

on: [push]
on:
push:
branches:
- main

jobs:
tests:
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ node_modules/
cache/
out/

# Vscode
.vscode/

# huffc artifacts
artifacts

Expand All @@ -23,3 +20,6 @@ broadcast

# Python
__pycache__

# VSCODE
.vscode
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 120
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ You can use the following commands for testing.
```sh
# run all tests
forge test -vvv
forge t -vvv
# run a specific test
forge test -vvv --mc PolynomialTest
forge test -vvv --mc Huffd1Test
forge t -vvv --mc Polynomial
forge t -vvv --mc Huffd1
```
I use `-vvv` to see reverts in detail.
Expand Down
7 changes: 2 additions & 5 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ optimizer = true
optimizer_runs = 200 # Default amount
ffi = true
fuzz_runs = 1_000
remappings = [
"forge-std=lib/forge-std/src/",
"foundry-huff=lib/foundry-huff/src/",
]

fs_permissions = [
{ access = "read", path = "./src/test/Polynomial.t.huff" }
{ access = "read", path = "./src/test/Polynomial.t.huff" },
{ access = "read", path = "./src/test/Huffd1.t.huff" }
]
9 changes: 9 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
foundry-huff/=lib/foundry-huff/src/
solidity-stringutils/=lib/foundry-huff/lib/solidity-stringutils/
lib/forge-std:ds-test/=lib/forge-std/lib/ds-test/src/
lib/foundry-huff:ds-test/=lib/foundry-huff/lib/forge-std/lib/ds-test/src/
lib/foundry-huff:forge-std/=lib/foundry-huff/lib/forge-std/src/
lib/foundry-huff:solidity-stringutils/=lib/foundry-huff/lib/solidity-stringutils/
lib/foundry-huff:stringutils/=lib/foundry-huff/lib/solidity-stringutils/
Loading

0 comments on commit dc93eaa

Please sign in to comment.