From 03243c1c4201752de402ce83d2d7a0518b66f371 Mon Sep 17 00:00:00 2001 From: Sergey Chystiakov Date: Tue, 18 Jun 2024 16:01:44 +0200 Subject: [PATCH] A-1207592706812249: utxo format update --- blue_modules/mintlayer/mintlayer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blue_modules/mintlayer/mintlayer.js b/blue_modules/mintlayer/mintlayer.js index 2630044..2fca910 100644 --- a/blue_modules/mintlayer/mintlayer.js +++ b/blue_modules/mintlayer/mintlayer.js @@ -79,11 +79,11 @@ export const getOutputs = async ({ amount, address, networkType, type = 'Transfe } if (type === 'LockThenTransfer') { let lockEncoded; - if (lock.UntilTime) { - lockEncoded = await webviewEventBus.exec(wasmMethods.encode_lock_until_time, [BigInt(lock.UntilTime.timestamp)]); + if (lock.type === 'UntilTime') { + lockEncoded = await webviewEventBus.exec(wasmMethods.encode_lock_until_time, [BigInt(lock.content.timestamp)]); } - if (lock.ForBlockCount) { - lockEncoded = await webviewEventBus.exec(wasmMethods.encode_lock_for_block_count, [BigInt(lock.ForBlockCount)]); + if (lock.type === 'ForBlockCount') { + lockEncoded = await webviewEventBus.exec(wasmMethods.encode_lock_for_block_count, [BigInt(lock.content)]); } return webviewEventBus.exec(wasmMethods.encode_output_lock_then_transfer, [amount, address, lockEncoded, networkIndex]);