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.
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.