ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
117 stars 53 forks source link

fix: allow setting empty contenthash #130

Closed TateB closed 1 year ago

TateB commented 1 year ago

previously empty content hash values couldn't be set when using a multicall because generateRecordCallArray() did a boolean check for the contentHash property existence, which excludes empty strings. changed check to be for typeof string, and added a default value of 0x in generateSingleRecordCall()