diff --git a/amplify/backend/function/createUniqueColony/src/index.js b/amplify/backend/function/createUniqueColony/src/index.js index 63679de8242..af288a2a7b8 100644 --- a/amplify/backend/function/createUniqueColony/src/index.js +++ b/amplify/backend/function/createUniqueColony/src/index.js @@ -227,7 +227,12 @@ exports.handler = async (event) => { const providerNetwork = await provider.getNetwork(); const chainId = String(providerNetwork.chainId); const version = await colonyClient.version(); - const isTokenLocked = colonyClient.tokenClient.locked(); + let isTokenLocked = false; + try { + isTokenLocked = await colonyClient.tokenClient.locked(); + } catch (error) { + // token doesn not support the `locked()` method + } /* * Create the colony diff --git a/src/redux/sagas/colony/colonyCreate.ts b/src/redux/sagas/colony/colonyCreate.ts index 92b6ee9c06a..958e41856c6 100644 --- a/src/redux/sagas/colony/colonyCreate.ts +++ b/src/redux/sagas/colony/colonyCreate.ts @@ -274,6 +274,7 @@ function* colonyCreate({ }, { timeout: 30000, + retryLimit: 0, }, ); @@ -335,6 +336,7 @@ function* colonyCreate({ }, { timeout: 30000, + retryLimit: 0, }, );