Skip to content

Commit

Permalink
A-1207592706812249: utxo format update
Browse files Browse the repository at this point in the history
  • Loading branch information
anyxem committed Jun 18, 2024
1 parent 55eed18 commit 03243c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blue_modules/mintlayer/mintlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 03243c1

Please sign in to comment.