From 8757167b9de5a837d6509ed395a3f935d9e3ab89 Mon Sep 17 00:00:00 2001 From: Sergej Sakac <73715684+Szegoo@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:31:59 +0200 Subject: [PATCH] Bump polkadot api (#67) * bump polkadot/api * bump types * format --- package.json | 5 ++--- src/pages/purchase.tsx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index fbedae38..25403682 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,9 @@ "@mui/lab": "5.0.0-alpha.134", "@mui/material": "^5.15.14", "@mui/x-date-pickers": "^6.19.5", - "@polkadot/api": "^10.8.1", - "@polkadot/api-contract": "^10.8.1", + "@polkadot/api": "^10.12.6", "@polkadot/extension-inject": "^0.46.4", - "@polkadot/types": "^10.8.1", + "@polkadot/types": "^10.12.6", "@polkadot/util": "^12.3.1", "@scio-labs/use-inkathon": "^0.0.1-alpha.44", "@types/humanize-duration": "^3.27.3", diff --git a/src/pages/purchase.tsx b/src/pages/purchase.tsx index ab930614..2e1ebf93 100644 --- a/src/pages/purchase.tsx +++ b/src/pages/purchase.tsx @@ -160,14 +160,14 @@ const Purchase = () => { toastSuccess('Transaction successful'); fetchRegions(); } else if (method === 'ExtrinsicFailed') { - toastError(`Failed to partition the region`); + toastError(`Failed to purchase the region`); } }); } } ); } catch (e) { - toastError(`Failed to partition the region. ${e}`); + toastError(`Failed to purchase the region. ${e}`); setWorking(false); } };