Closed ananas-block closed 1 year ago
https://github.com/Shigoto-dev19/ZK-Battleships-Solana/blob/6653dee2976ecbdcff0a48529c79a9b5dd4e7685/src/battleShipClient.ts#L76
const boardHash = await mimcSponge.multiHash(board.flat());
should be
const boardHash = await this.mimcSponge.multiHash(board.flat());
I solved it as BattleShipClient.mimcSponge because the initialize method is static
https://github.com/Shigoto-dev19/ZK-Battleships-Solana/blob/6653dee2976ecbdcff0a48529c79a9b5dd4e7685/src/battleShipClient.ts#L76
const boardHash = await mimcSponge.multiHash(board.flat());
should be
const boardHash = await this.mimcSponge.multiHash(board.flat());