From e10a4a37a5ff2020dbe2ce435600b484f2cd219c Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Tue, 11 Nov 2025 18:01:37 +0300 Subject: [PATCH] slashing spans fix Signed-off-by: Uncle Fatso --- package.json | 2 +- src/containers/Nominations.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d4a4a71..68594b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghost-lite", - "version": "0.1.8", + "version": "0.1.9", "description": "Web application for Ghost and Casper chain.", "author": "Uncle f4ts0 ", "maintainers": [ diff --git a/src/containers/Nominations.tsx b/src/containers/Nominations.tsx index 6da8047..74baa4e 100644 --- a/src/containers/Nominations.tsx +++ b/src/containers/Nominations.tsx @@ -242,7 +242,7 @@ export const Nominations = () => { const bondedAddress = useBondedAddress({ address: account?.address }) const payeeCalldata = usePayeeCalldata(expectedPayee, destinationReceiver) - const withdrawCalldata = useWithdrawCalldata(slashingSpans?.prior?.length ?? 0) + const withdrawCalldata = useWithdrawCalldata(slashingSpans?.prior?.length + 1 ?? 0) const nominateCalldata = useNominateCalldata(checkedAddresses) const bondExtraCalldata = useBondExtraCalldata( convertedAmount > 0n ? convertedAmount : undefined