Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-react",
"version": "3.12.0",
"version": "3.12.1",
"description": "Allowing crypto users manage funds in a safer way",
"website": "https://github.com/gnosis/safe-react#readme",
"bugs": {
Expand Down
3 changes: 2 additions & 1 deletion src/logic/contracts/safeContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const getSafeContractDeployment = ({ safeVersion }: { safeVersion: string }) =>
// We have to check if network is L2
const networkId = getNetworkId()
const networkConfig = getNetworkConfigById(networkId)
const useL2ContractVersion = networkConfig?.network.ethereumLayer === ETHEREUM_LAYER.L2
// We had L1 contracts in three L2 networks, xDai, EWC and Volta so even if network is L2 we have to check that safe version is after v1.3.0
const useL2ContractVersion = networkConfig?.network.ethereumLayer === ETHEREUM_LAYER.L2 && semverSatisfies(safeVersion, '>=1.3.0')
const getDeployment = useL2ContractVersion ? getSafeL2SingletonDeployment : getSafeSingletonDeployment
return (
getDeployment({
Expand Down