Skip to content

Commit b04784b

Browse files
committed
Update @nimiq/core to v2.0.6 and update Webpack to support it
Webpack was running into webpack/webpack#15566 with the latest @nimiq/core version, but an update fixed it.
1 parent 6b8d0fe commit b04784b

File tree

3 files changed

+171
-178
lines changed

3 files changed

+171
-178
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@adapttive/vue-markdown": "^4.0.1",
2626
"@formatjs/intl-displaynames": "^3.3.4",
2727
"@linusborg/vue-simple-portal": "^0.1.4",
28-
"@nimiq/core": "^2.0.5",
28+
"@nimiq/core": "^2.0.6",
2929
"@nimiq/electrum-client": "https://github.com./nimiq/electrum-client#build",
3030
"@nimiq/fastspot-api": "^1.10.3",
3131
"@nimiq/hub-api": "^1.10.0",

src/components/swap/SwapNotification.vue

-5
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ export default defineComponent({
384384
// Unreachable, as Erc20AssetHandler does not fire onUpdate
385385
} else {
386386
updateSwap({
387-
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
388387
remoteFundingTx: tx,
389388
});
390389
}
@@ -405,7 +404,6 @@ export default defineComponent({
405404
updateSwap({
406405
state: SwapState.CREATE_OUTGOING,
407406
stateEnteredAt: Date.now(),
408-
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
409407
remoteFundingTx,
410408
});
411409
}
@@ -585,7 +583,6 @@ export default defineComponent({
585583
activeSwap.value!.fundingSerializedTx!,
586584
(tx) => {
587585
updateSwap({
588-
// @ts-expect-error Missmatch with PlainTransactionDetails from fastspot-api
589586
fundingTx: tx as Transaction<SwapAsset.NIM | SwapAsset.BTC>,
590587
});
591588
currentError.value = null;
@@ -607,7 +604,6 @@ export default defineComponent({
607604
updateSwap({
608605
state: SwapState.AWAIT_SECRET,
609606
stateEnteredAt: Date.now(),
610-
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
611607
fundingTx: fundingTx as Transaction<SwapAsset.NIM | SwapAsset.BTC>,
612608
});
613609
} catch (error: any) {
@@ -898,7 +894,6 @@ export default defineComponent({
898894
updateSwap({
899895
state: SwapState.COMPLETE,
900896
stateEnteredAt: Date.now(),
901-
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
902897
settlementTx:
903898
settlementTx as Transaction<SwapAsset.NIM | SwapAsset.BTC | SwapAsset.EUR>,
904899
});

0 commit comments

Comments
 (0)