From f1d6af4290279644982e970463a32a11bd65bcf2 Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Mon, 6 May 2024 15:01:08 -0400 Subject: [PATCH] Update type of KeyValuePairs address in NetworkConfig to Address --- src/providers/NetworkConfig/networks/base.ts | 2 +- src/providers/NetworkConfig/networks/baseSepolia.ts | 2 +- src/providers/NetworkConfig/networks/mainnet.ts | 2 +- src/providers/NetworkConfig/networks/optimism.ts | 2 +- src/providers/NetworkConfig/networks/polygon.ts | 2 +- src/providers/NetworkConfig/networks/sepolia.ts | 2 +- src/types/network.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/providers/NetworkConfig/networks/base.ts b/src/providers/NetworkConfig/networks/base.ts index 05a50696fe..458b3f6486 100644 --- a/src/providers/NetworkConfig/networks/base.ts +++ b/src/providers/NetworkConfig/networks/base.ts @@ -71,7 +71,7 @@ export const baseConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: {}, createOptions: [ diff --git a/src/providers/NetworkConfig/networks/baseSepolia.ts b/src/providers/NetworkConfig/networks/baseSepolia.ts index ce74e9ea1c..96d179f59b 100644 --- a/src/providers/NetworkConfig/networks/baseSepolia.ts +++ b/src/providers/NetworkConfig/networks/baseSepolia.ts @@ -73,7 +73,7 @@ export const baseSepoliaConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: {}, createOptions: [ diff --git a/src/providers/NetworkConfig/networks/mainnet.ts b/src/providers/NetworkConfig/networks/mainnet.ts index a1a7f94772..9592defc14 100644 --- a/src/providers/NetworkConfig/networks/mainnet.ts +++ b/src/providers/NetworkConfig/networks/mainnet.ts @@ -71,7 +71,7 @@ export const mainnetConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: { lido: { diff --git a/src/providers/NetworkConfig/networks/optimism.ts b/src/providers/NetworkConfig/networks/optimism.ts index 420c4de0cd..b07269f627 100644 --- a/src/providers/NetworkConfig/networks/optimism.ts +++ b/src/providers/NetworkConfig/networks/optimism.ts @@ -71,7 +71,7 @@ export const optimismConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: {}, createOptions: [ diff --git a/src/providers/NetworkConfig/networks/polygon.ts b/src/providers/NetworkConfig/networks/polygon.ts index 98800188a0..35173b9d2b 100644 --- a/src/providers/NetworkConfig/networks/polygon.ts +++ b/src/providers/NetworkConfig/networks/polygon.ts @@ -71,7 +71,7 @@ export const polygonConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: {}, createOptions: [GovernanceType.MULTISIG, GovernanceType.AZORIUS_ERC20], diff --git a/src/providers/NetworkConfig/networks/sepolia.ts b/src/providers/NetworkConfig/networks/sepolia.ts index acf29eda6b..2c350b4a35 100644 --- a/src/providers/NetworkConfig/networks/sepolia.ts +++ b/src/providers/NetworkConfig/networks/sepolia.ts @@ -71,7 +71,7 @@ export const sepoliaConfig: NetworkConfig = { network: chain.id.toString(), })?.networkAddresses[chain.id.toString()]!, votesERC20WrapperMasterCopy: getAddress(VotesERC20Wrapper.address), - keyValuePairs: KeyValuePairs.address, + keyValuePairs: getAddress(KeyValuePairs.address), }, staking: {}, createOptions: [ diff --git a/src/types/network.ts b/src/types/network.ts index 88f8f8edd1..2f14920699 100644 --- a/src/types/network.ts +++ b/src/types/network.ts @@ -40,7 +40,7 @@ export type NetworkConfig = { erc20FreezeVotingMasterCopy: string; erc721FreezeVotingMasterCopy: string; votesERC20WrapperMasterCopy: Address; - keyValuePairs: string; + keyValuePairs: Address; }; staking: { lido?: {