From 4e4d79461c9eb1c33997e9945468b003f2778c45 Mon Sep 17 00:00:00 2001 From: catdev2024 Date: Mon, 4 Nov 2024 19:19:16 +0800 Subject: [PATCH] Fix ci --- .../src/contracts/nft/nftOpenMinterProto.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/smartcontracts/src/contracts/nft/nftOpenMinterProto.ts b/packages/smartcontracts/src/contracts/nft/nftOpenMinterProto.ts index 7ec2db9..1ffdf94 100644 --- a/packages/smartcontracts/src/contracts/nft/nftOpenMinterProto.ts +++ b/packages/smartcontracts/src/contracts/nft/nftOpenMinterProto.ts @@ -3,6 +3,7 @@ import { hash160, int2ByteString, method, + Ripemd160, SmartContractLib, toByteString, } from 'scrypt-ts' @@ -97,7 +98,13 @@ export class NftOpenMinterMerkleTreeData { return this.hashNodes[this.hashNodes.length - 1][0] } - getMerklePath(leafIndex: number) { + getMerklePath(leafIndex: number): { + leaf: Ripemd160, + leafNode: NftMerkleLeaf, + neighbor: string[], + neighborType: boolean[], + merkleRoot: string, + } { const leafNode = this.leafArray[leafIndex] let prevHash = this.hashNodes[0] const neighbor: string[] = []