-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,069 changed files
with
2,526 additions
and
90,888 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3c488f4b272f460383341c51270b87bfe2b94468 | ||
db28cb9ffb710c286b54dbfcf57292ae3dffb03d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 6 additions & 11 deletions
17
noir-projects/noir-contracts/contracts/easy_private_voting_contract/src/test/utils.nr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
use dep::aztec::{ | ||
note::{note_getter::{MAX_NOTES_PER_PAGE, view_notes}, note_viewer_options::NoteViewerOptions}, | ||
prelude::AztecAddress, | ||
protocol_types::storage::map::derive_storage_slot_in_map, | ||
test::helpers::test_environment::TestEnvironment, | ||
}; | ||
use dep::aztec::{prelude::AztecAddress, test::helpers::test_environment::TestEnvironment}; | ||
|
||
use crate::EasyPrivateVoting; | ||
|
||
pub fn setup() -> (&mut TestEnvironment, AztecAddress, AztecAddress) { | ||
let mut env = TestEnvironment::new(); | ||
let mut env = unsafe { TestEnvironment::new() }; | ||
|
||
let admin = env.create_account(); | ||
let admin = unsafe { env.create_account() }; | ||
|
||
let initializer_call_interface = EasyPrivateVoting::interface().constructor(admin); | ||
let voting_contract = env.deploy_self("EasyPrivateVoting").with_public_void_initializer( | ||
initializer_call_interface, | ||
); | ||
let voting_contract = unsafe { | ||
env.deploy_self("EasyPrivateVoting").with_public_void_initializer(initializer_call_interface) | ||
}; | ||
// std::println(voting_contract); | ||
(&mut env, voting_contract.to_address(), admin) | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
yarn-lock: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -492,7 +492,7 @@ jobs: | |
uses: foundry-rs/[email protected] | ||
with: | ||
version: nightly-8660e5b941fe7f4d67e246cfd3dafea330fb53b1 | ||
|
||
|
||
- name: Install `bb` | ||
run: | | ||
|
@@ -530,10 +530,10 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build list of libraries | ||
id: get_critical_libraries | ||
run: | | ||
run: | | ||
LIBRARIES=$(grep -Po "^https://github.com/\K.+" ./CRITICAL_NOIR_LIBRARIES | jq -R -s -c 'split("\n") | map(select(. != "")) | map({ repo: ., path: ""})') | ||
echo "libraries=$LIBRARIES" | ||
echo "libraries=$LIBRARIES" >> $GITHUB_OUTPUT | ||
|
@@ -593,11 +593,16 @@ jobs: | |
# Github actions seems to not expand "**" in globs by default. | ||
shopt -s globstar | ||
sed -i '/^compiler_version/d' ./**/Nargo.toml | ||
- name: Run nargo test | ||
working-directory: ./test-repo/${{ matrix.project.path }} | ||
run: | | ||
nargo test --silence-warnings --skip-brillig-constraints-check --format json ${{ matrix.project.nargo_args }} | tee ${{ github.workspace }}/noir-repo/.github/critical_libraries_status/${{ matrix.project.repo }}/${{ matrix.project.path }}.actual.jsonl | ||
output_file=${{ github.workspace }}/noir-repo/.github/critical_libraries_status/${{ matrix.project.repo }}/${{ matrix.project.path }}.actual.jsonl | ||
nargo test --silence-warnings --skip-brillig-constraints-check --format json ${{ matrix.project.nargo_args }} | tee $output_file | ||
if [ ! -s $output_file ]; then | ||
# The file is empty so we delete it to signal that `nargo test` failed before it could run any tests | ||
rm -f $output_file | ||
fi | ||
env: | ||
NARGO_IGNORE_TEST_FAILURES_FROM_FOREIGN_CALLS: true | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.