Skip to content

feat: Prove contract inclusion with constructor args #3695

@LHerskind

Description

@LHerskind

The leaf in the contracts tree should include the constructor vk + args hash. That way ensuring that it can easily be used in factory setups.

Currently the pre-image of the leafs are (contract_address, portal_address, function_tree_root) which makes it difficult to figure out if the constructor was also the same as desired.

Why is this important? The functions might be the same, but if either the constructor or the arguments to it differs, it might set values differently to what was expected or other shenanigans.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions