diff --git a/alm/src/components/ManualExecutionButton.tsx b/alm/src/components/ManualExecutionButton.tsx index cd492e866..32492d2f8 100644 --- a/alm/src/components/ManualExecutionButton.tsx +++ b/alm/src/components/ManualExecutionButton.tsx @@ -45,6 +45,7 @@ export const ManualExecutionButton = ({ const { library, activate, account, active } = useWeb3React() const [manualExecution, setManualExecution] = useState(false) const [allowFailures, setAllowFailures] = useState(false) + const notReady = !foreign.bridgeContract || !signatureCollected || !signatureCollected.length useEffect( () => { @@ -150,7 +151,7 @@ export const ManualExecutionButton = ({ return (
- setManualExecution(true)}> + setManualExecution(true)}> Execute
diff --git a/alm/src/utils/getConfirmationsForTx.ts b/alm/src/utils/getConfirmationsForTx.ts index 54374efba..a7d873547 100644 --- a/alm/src/utils/getConfirmationsForTx.ts +++ b/alm/src/utils/getConfirmationsForTx.ts @@ -86,6 +86,14 @@ export const getConfirmationsForTx = async ( setPendingConfirmations(validatorPendingConfirmations.length > 0) } else { setPendingConfirmations(false) + if (fromHome) { + // fetch collected signatures for possible manual processing + setSignatureCollected( + await Promise.all( + Array.from(Array(requiredSignatures).keys()).map(i => bridgeContract.methods.signature(hashMsg, i).call()) + ) + ) + } } const undefinedConfirmations = validatorConfirmations.filter( @@ -115,15 +123,6 @@ export const getConfirmationsForTx = async ( status: VALIDATOR_CONFIRMATION_STATUS.NOT_REQUIRED })) updateConfirmations(notRequiredConfirmations) - - if (fromHome) { - // fetch collected signatures for possible manual processing - setSignatureCollected( - await Promise.all( - Array.from(Array(requiredSignatures).keys()).map(i => bridgeContract.methods.signature(hashMsg, i).call()) - ) - ) - } } // get transactions from success signatures