Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage fixtures #263

Merged
merged 3 commits into from
May 10, 2024
Merged

Storage fixtures #263

merged 3 commits into from
May 10, 2024

Conversation

LogvinovLeon
Copy link
Collaborator

@LogvinovLeon LogvinovLeon commented May 9, 2024

This PR:

Fox context - before we used to take addresses, storage keys & storage values from proofs, but now our proofs use Fragments so they have those values padded and we need unpadded one in fixtures to make the code/tests easier

@@ -155,8 +155,7 @@ fn test_verify_header_invalid_receipt_root() {

global RLP_SHORT_STRING_TYPE = 0x80;

// TODO: Add correct assertion message when noir-trie-proofs is updated
#[test(should_fail)]
#[test(should_fail_with="Expected a list")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

data[i] = self[i] as Field;
}
data
self.map(|x: u8| x as Field)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@LogvinovLeon LogvinovLeon merged commit 8a6309b into main May 10, 2024
6 checks passed
@LogvinovLeon LogvinovLeon deleted the leo/storage-fixtures branch May 10, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants