Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript committed Oct 21, 2024
1 parent b23fbd1 commit 2b0bf13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/wallet-mobile/src/yoroi-wallets/cardano/cip30/cip30.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ class CIP30Extension {
const tx = await csl.Transaction.fromHex(cbor)
const txBody = await tx.body()
const signedTx = await csl.Transaction.new(txBody, witnesses, undefined)
const signedTxBytes = await signedTx.toBytes()

const txId = await (await hashTransaction(csl, signedTx)).toHex()
const txId = await (await hashTransaction(csl, signedTxBytes)).toHex()

const signedTxBytes = await signedTx.toBytes()
await this.wallet.submitTransaction(Buffer.from(signedTxBytes).toString('base64'))
return getTransactionUnspentOutput({
txId,
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/numbers/to-bigint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function toBigInt(
typeof quantity === 'string'
? quantity.replace(/(?!^-)[^\d.-]/g, '')
: quantity
const bigNumber = BigNumber(sanitized || 0)
const bigNumber = new BigNumber(sanitized || 0)

const scaledNumber = bigNumber.shiftedBy(decimalPlaces)

Expand Down
4 changes: 2 additions & 2 deletions packages/dapp-connector/src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export const resolver: Resolver = {

if (result === null || result.length === 0) {
const balance = await context.wallet.getBalance('*')
const coin = BigNumber(await (await balance.coin()).toStr())
if (coin.isGreaterThan(BigNumber(value))) {
const coin = new BigNumber(await (await balance.coin()).toStr())
if (coin.isGreaterThan(new BigNumber(value))) {
try {
const utxo = await context.wallet.sendReorganisationTx(value)
return [await utxo.toHex()]
Expand Down

0 comments on commit 2b0bf13

Please sign in to comment.