Skip to content

Commit

Permalink
Update @nimiq/core to v2.0.6 and update Webpack to support it
Browse files Browse the repository at this point in the history
Webpack was running into webpack/webpack#15566 with the latest @nimiq/core version, but an update fixed it.
  • Loading branch information
sisou committed Jan 13, 2025
1 parent 6b8d0fe commit b04784b
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 178 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@adapttive/vue-markdown": "^4.0.1",
"@formatjs/intl-displaynames": "^3.3.4",
"@linusborg/vue-simple-portal": "^0.1.4",
"@nimiq/core": "^2.0.5",
"@nimiq/core": "^2.0.6",
"@nimiq/electrum-client": "https://github.com/nimiq/electrum-client#build",
"@nimiq/fastspot-api": "^1.10.3",
"@nimiq/hub-api": "^1.10.0",
Expand Down
5 changes: 0 additions & 5 deletions src/components/swap/SwapNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ export default defineComponent({
// Unreachable, as Erc20AssetHandler does not fire onUpdate
} else {
updateSwap({
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
remoteFundingTx: tx,
});
}
Expand All @@ -405,7 +404,6 @@ export default defineComponent({
updateSwap({
state: SwapState.CREATE_OUTGOING,
stateEnteredAt: Date.now(),
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
remoteFundingTx,
});
}
Expand Down Expand Up @@ -585,7 +583,6 @@ export default defineComponent({
activeSwap.value!.fundingSerializedTx!,
(tx) => {
updateSwap({
// @ts-expect-error Missmatch with PlainTransactionDetails from fastspot-api
fundingTx: tx as Transaction<SwapAsset.NIM | SwapAsset.BTC>,
});
currentError.value = null;
Expand All @@ -607,7 +604,6 @@ export default defineComponent({
updateSwap({
state: SwapState.AWAIT_SECRET,
stateEnteredAt: Date.now(),
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
fundingTx: fundingTx as Transaction<SwapAsset.NIM | SwapAsset.BTC>,
});
} catch (error: any) {
Expand Down Expand Up @@ -898,7 +894,6 @@ export default defineComponent({
updateSwap({
state: SwapState.COMPLETE,
stateEnteredAt: Date.now(),
// @ts-expect-error Missmatch with Nimiq.PlainTransactionDetails from fastspot-api
settlementTx:
settlementTx as Transaction<SwapAsset.NIM | SwapAsset.BTC | SwapAsset.EUR>,
});
Expand Down
Loading

0 comments on commit b04784b

Please sign in to comment.