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

refactor: representing TxHash as Fr #10954

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

benesjan
Copy link
Contributor

@benesjan benesjan commented Dec 23, 2024

TxHash used to be representing as Buffer32 and it did not make sense as it's an Fr.

+ typo fixes

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@benesjan benesjan changed the title refactor: represetnting tx hahs as Fr refactor: representing TxHash as Fr Dec 23, 2024
@@ -15,6 +15,6 @@ struct ProposeArgs {

library ProposeLib {
function digest(ProposeArgs memory _args) internal pure returns (bytes32) {
return keccak256(abi.encode(SignatureLib.SignatureDomainSeperator.blockAttestation, _args));
return keccak256(abi.encode(SignatureLib.SignatureDomainSeparator.blockAttestation, _args));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This typo was in a lot of places and it bothered me. Sorry for the messy diff

const owner = AztecAddress.fromBuffer(reader);
const contractAddress = AztecAddress.fromBuffer(reader);
const storageSlot = Fr.fromBuffer(reader);
const note = reader.readObject(Note);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unnecessary change but I thought it will make it cuter

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.

1 participant