zksync-sdk / zksync2-js

MIT License
25 stars 29 forks source link

feat: make input optional in create2Address #6

Closed idea404 closed 11 months ago

idea404 commented 11 months ago

In the case where there are no constructor arguments, passing undefined or null (or empty byte array) as the input results in the wrong keccak256 hash being generated. So make it optional and default to empty string which generates the correct hash.