fix: encode param function error
MODIFY
src/libs/ProofsUtil.ts
src/libs/ProofsUtil.ts
@@ -56,11 +56,11 @@ export default class ProofsUtil {
}
}
- static async recursiveZeroHash(n: number, web3) {
+ static recursiveZeroHash(n: number, web3) {
if (n === 0) return '0x0000000000000000000000000000000000000000000000000000000000000000'
const subHash = this.recursiveZeroHash(n - 1, web3)
return ethUtils.keccak256(
- ethUtils.toBuffer(web3.eth.abi.encodeParameter(['bytes32', 'bytes32'], [subHash, subHash]))
+ ethUtils.toBuffer(web3.eth.abi.encodeParameters(['bytes32', 'bytes32'], [subHash, subHash]))
)
}

fix: encode param function error