Skip to content

Commit

Permalink
fix(registries): add missing ethereum chain id (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan authored Feb 5, 2020
1 parent a8677f4 commit d887e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Frost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export async function Frost(localVars: any = {}) {
},
configuration: {
ethereumUrl: configuration.ethereumUrl,
ethereumChainId: configuration.ethereumChainId,
},
})

Expand Down
3 changes: 3 additions & 0 deletions src/controllers/RegistryController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface Dependencies {

interface Configuration {
readonly ethereumUrl: string
readonly ethereumChainId: number
readonly cidPageSize?: number
}

Expand All @@ -38,6 +39,7 @@ export const RegistryController = ({
},
configuration: {
ethereumUrl,
ethereumChainId,
cidPageSize = 10,
},
}: Arguments): RegistryController => {
Expand Down Expand Up @@ -96,6 +98,7 @@ export const RegistryController = ({
rpcUrl: ethereumUrl,
contractAddress: registry.address,
privateKey: account.ethereumRegistryPrivateKey,
chainId: ethereumChainId,
})

const translateError = (error: Error) => {
Expand Down

0 comments on commit d887e21

Please sign in to comment.