fix: Fix unmatched cheque lockHash - #2390
Conversation
|
Could you describe the bug in a little detail cuz it's too brief in the issue that I'm not clear about it. |
Detail on this issue. |
I've viewed the issue but am not clear about the error. const chequeCellTmp = Output.fromObject({
capacity: BigInt(162 * 10 ** 8).toString(),
lock: assetAccountInfo.generateChequeScript('0'.repeat(40), '0'.repeat(40)),
type: assetAccountInfo.generateSudtScript(assetAccount.tokenID)
})
// ...
const chequeCell = Output.fromObject({
...chequeCellTmp,
data: BufferUtils.writeBigUInt128LE(BigInt(gatheredSudtInputResult.amount)),
lock: assetAccountInfo.generateChequeScript(
receiverLockScript.computeHash(),
senderDefaultCell.lock!.computeHash()
)
})
assetAccountInfo.generateChequeScript(
receiverLockScript.computeHash(),
senderDefaultCell.lock!.computeHash()
)and finally turns into {
capacity: BigInt(162 * 10 ** 8).toString(),
lock: assetAccountInfo.generateChequeScript(
receiverLockScript.computeHash(),
senderDefaultCell.lock!.computeHash()
),
type: assetAccountInfo.generateSudtScript(assetAccount.tokenID),
data: BufferUtils.writeBigUInt128LE(BigInt(gatheredSudtInputResult.amount)),
}Which property is not correct |
Output's lockHash is computed by |
Got it |
No description provided.