Skip to content

Commit

Permalink
revert back to support mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
HananINouman committed Mar 18, 2024
1 parent b377ab6 commit 3083843
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export abstract class Base {
baseUrl = DEFAULT_BASE_URL,
chainId = DEFAULT_CHAIN_ID,
}: Config) {
if (chainId === 1) {
throw new Error('Obol-SDK is in Beta phase, mainnet is not yet supported')
}

this.baseUrl = baseUrl
this.chainId = chainId
this.fork_version = FORK_MAPPING[this.chainId]
Expand Down
14 changes: 7 additions & 7 deletions test/methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ describe('Cluster Client', () => {
mockSigner,
)

test('throws invalid ChainId when it is equal to 1', async () => {
try {
new Client({ chainId: 1 }, mockSigner)
} catch (error: any) {
expect(error.message).toBe('Obol-SDK is in Beta phase, mainnet is not yet supported')
}
})
// test('throws invalid ChainId when it is equal to 1', async () => {
// try {
// new Client({ chainId: 1 }, mockSigner)
// } catch (error: any) {
// expect(error.message).toBe('Obol-SDK is in Beta phase, mainnet is not yet supported')
// }
// })

test('createClusterDefinition should return config_hash', async () => {
clientInstance['request'] = jest
Expand Down

0 comments on commit 3083843

Please sign in to comment.