diff --git a/src/logic/safe/safeTxSigner.js b/src/logic/safe/safeTxSigner.js index d28c1718..cfa5716a 100644 --- a/src/logic/safe/safeTxSigner.js +++ b/src/logic/safe/safeTxSigner.js @@ -3,7 +3,7 @@ import { List } from 'immutable' import { type Confirmation } from '~/routes/safe/store/models/confirmation' -// https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures +// https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures // https://github.com/gnosis/safe-contracts/blob/master/test/gnosisSafeTeamEdition.js#L26 export const generateSignaturesFromTxConfirmations = ( confirmations: List, @@ -28,7 +28,7 @@ export const generateSignaturesFromTxConfirmations = ( if (conf.signature) { sigs += conf.signature.slice(2) } else { - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures sigs += `000000000000000000000000${addr.replace( '0x', '', diff --git a/src/logic/safe/transactions/gas.js b/src/logic/safe/transactions/gas.js index 21ae4414..c8072f37 100644 --- a/src/logic/safe/transactions/gas.js +++ b/src/logic/safe/transactions/gas.js @@ -21,7 +21,7 @@ const estimateDataGasCosts = data => { return data.match(/.{2}/g).reduce(reducer, 0) } -// https://gnosis-safe.readthedocs.io/en/latest/contracts/transactions.html#safe-transaction-data-gas-estimation +// https://docs.gnosis.io/safe/docs/docs4/#safe-transaction-data-gas-estimation // https://github.com/gnosis/safe-contracts/blob/a97c6fd24f79c0b159ddd25a10a2ebd3ea2ef926/test/utils/execution.js export const estimateDataGas = ( safe: any, @@ -43,7 +43,7 @@ export const estimateDataGas = ( const gasPrice = 0 // no need to get refund when we submit txs to metamask const signatureCost = signatureCount * (68 + 2176 + 2176 + 6000) // array count (3 -> r, s, v) * signature count - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures const sigs = `0x000000000000000000000000${from.replace( '0x', '', @@ -103,7 +103,7 @@ export const calculateTxFee = async ( safeInstance = await getGnosisSafeInstanceAt(safeAddress) } - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures const sigs = `0x000000000000000000000000${from.replace( '0x', '', diff --git a/src/logic/safe/transactions/gasNew.js b/src/logic/safe/transactions/gasNew.js index 998207cc..c515d7df 100644 --- a/src/logic/safe/transactions/gasNew.js +++ b/src/logic/safe/transactions/gasNew.js @@ -27,7 +27,7 @@ export const estimateTxGasCosts = async ( let txData if (isExecution) { - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures const signatures = tx && tx.confirmations ? generateSignaturesFromTxConfirmations(tx.confirmations, preApprovingOwner) diff --git a/src/routes/safe/store/actions/createTransaction.js b/src/routes/safe/store/actions/createTransaction.js index 6b9c87e6..6f08a5db 100644 --- a/src/routes/safe/store/actions/createTransaction.js +++ b/src/routes/safe/store/actions/createTransaction.js @@ -65,7 +65,7 @@ const createTransaction = ({ const nonce = await getNewTxNonce(txNonce, lastTx, safeInstance) const isExecution = await shouldExecuteTransaction(safeInstance, nonce, lastTx) - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures const sigs = `0x000000000000000000000000${from.replace( '0x', '', diff --git a/src/routes/safe/store/actions/processTransaction.js b/src/routes/safe/store/actions/processTransaction.js index d7682348..30dc2b14 100644 --- a/src/routes/safe/store/actions/processTransaction.js +++ b/src/routes/safe/store/actions/processTransaction.js @@ -48,7 +48,7 @@ const processTransaction = ({ const isExecution = approveAndExecute || (await shouldExecuteTransaction(safeInstance, nonce, lastTx)) let sigs = generateSignaturesFromTxConfirmations(tx.confirmations, approveAndExecute && userAddress) - // https://gnosis-safe.readthedocs.io/en/latest/contracts/signatures.html#pre-validated-signatures + // https://docs.gnosis.io/safe/docs/docs5/#pre-validated-signatures if (!sigs) { sigs = `0x000000000000000000000000${from.replace( '0x',