Skip to content

Commit daee7ff

Browse files
authored
Merge pull request #27 from clober-dex/fix/fatal-bug
fix: missing chainId
2 parents 43d83d6 + b232159 commit daee7ff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clober/v2-sdk",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"description": "🛠 An SDK for building applications on top of Clober V2",
55
"files": [
66
"dist"

src/apis/market.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { arbitrumSepolia } from 'viem/chains'
2-
31
import { CHAIN_IDS } from '../constants/chain'
42
import { Market } from '../model/market'
53
import { Book } from '../model/book'
@@ -65,7 +63,7 @@ const getBook = async (
6563

6664
const [depths, isOpened] = await Promise.all([
6765
cachedPublicClients[chainId].readContract({
68-
address: CONTRACT_ADDRESSES[arbitrumSepolia.id]!.BookViewer,
66+
address: CONTRACT_ADDRESSES[chainId]!.BookViewer,
6967
abi: BOOK_VIEWER_ABI,
7068
functionName: 'getLiquidity',
7169
args: [bookId, Number(2n ** 19n - 1n), BigInt(n)],

0 commit comments

Comments
 (0)