slashing spans fix

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-11-11 18:01:37 +03:00
parent 7bb4a473ba
commit e10a4a37a5
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 2 additions and 2 deletions

View File

@ -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 <f4ts0@ghostchain.io>",
"maintainers": [

View File

@ -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