Skip to content

Commit

Permalink
use governance address from networkData
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparkallas authored Oct 23, 2023
1 parent c14df27 commit 42ae973
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions packages/sdk-core/src/Framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,13 @@ export default class Framework {
};

// supported networks scenario
if (
networkData != null &&
baseSettings.protocolReleaseVersion === V1
) {
let governanceAddress = ethers.constants.AddressZero;

if (networkData.addresses.governance == null) {
governanceAddress = await Superfluid__factory.connect(
networkData.addresses.host,
provider
).getGovernance();
}
if (networkData && baseSettings.protocolReleaseVersion === V1) {
const governanceAddress = networkData.addresses.governance
? networkData.addresses.governance
: await Superfluid__factory.connect(
networkData.addresses.host,
provider
).getGovernance();

const settings: IFrameworkSettings = {
...baseSettings,
Expand Down

0 comments on commit 42ae973

Please sign in to comment.