calculate init code hash nodejs
const crypto = require('crypto');
const fs = require('fs');
function calculateInitCodeHash() {
const initCodePath = 'path/to/your/initCode.js'; // Replace with the actual path to your initCode.js file
const initCode = fs.readFileSync(initCodePath, 'utf8');
const hash = crypto.createHash('sha256');
hash.update(initCode);
const initCodeHash = hash.digest('hex');
console.log('Init Code Hash:', initCodeHash);
}
calculateInitCodeHash();