Skip to content

Commit

Permalink
Delete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Oct 9, 2023
1 parent 144f340 commit f1fed89
Showing 1 changed file with 0 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -884,47 +884,6 @@ export const makeShelleyWallet = (constants: typeof MAINNET | typeof TESTNET) =>

console.log('received signature', signedLedgerTx)

// const tx = await CardanoMobile.Transaction.fromHex(cbor)
//
// const allUtxos = await this.getAddressedUtxos()
// const addressingMap = new Map<RemoteUnspentOutput, CardanoAddressedUtxo>()
// console.log('allUtxos', allUtxos)
// for (const utxo of allUtxos) {
// addressingMap.set(
// {
// amount: utxo.amount,
// receiver: utxo.receiver,
// txHash: utxo.txHash,
// txIndex: utxo.txIndex,
// utxoId: utxo.utxoId,
// assets: utxo.assets,
// },
// utxo,
// )
// }
//
// const senderUtxos = allUtxos
// try {
// const signedTx = await Cardano.buildLedgerSignedTx(
// {senderUtxos, txBuilder: {build: () => tx.body()}} as any,
// signedLedgerTx,
// PURPOSE,
// this.publicKeyHex,
// true,
// )
//
// console.log('signedTx', signedTx)
// // await this.submitTransaction(base64)
// const base64 = Buffer.from(signedTx.encodedTx).toString('base64')
// console.log('got base64', base64)
// await this.submitTransaction(base64)
// } catch (e) {
// if (e instanceof Error) {
// console.log('error', e)
// console.log('error', e.stack)
// }
// }

const bytes = await createSignedLedgerSwapCancellationTx(
cbor,
signedLedgerTx.witnesses,
Expand Down

0 comments on commit f1fed89

Please sign in to comment.