session overlap aware fix
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
a2a4b86ccc
commit
4ffa0f4b17
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.4.4",
|
||||
"version": "0.4.5",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -129,10 +129,18 @@ const Bridge = ({ chainId, address, config, connect }) => {
|
||||
});
|
||||
const blockCommitments = useBlockCommitments({ evmChainId: chainId });
|
||||
const disabledValidators = useDisabledValidators();
|
||||
const transactionApplaused = useApplauseDetails({
|
||||
const transactionApplausedDirect = useApplauseDetails({
|
||||
currentSession: watchTransaction?.sessionIndex ?? currentSession,
|
||||
argsHash: hashedArguments
|
||||
});
|
||||
const transactionApplausedIncremented = useApplauseDetails({
|
||||
currentSession: watchTransaction ? watchTransaction.sessionIndex + 1 : undefined,
|
||||
argsHash: hashedArguments
|
||||
});
|
||||
|
||||
const transactionApplaused = useMemo(() => {
|
||||
return transactionApplausedDirect || transactionApplausedIncremented;
|
||||
}, [transactionApplausedDirect, transactionApplausedIncremented])
|
||||
|
||||
const finalityDelay = Number(evmNetwork?.finality_delay ?? 0n);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user