Skip to content

Commit

Permalink
Fix circular dependency (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
bangtoven authored Apr 6, 2023
1 parent 84fdd80 commit 37e3740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wallet-sdk/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
serializeError as serialize,
} from "eth-rpc-errors";

import { CoinbaseWalletSDK } from "./CoinbaseWalletSDK";
import { JSONRPCRequest } from "./provider/JSONRPC";
import { isErrorResponse } from "./relay/Web3Response";
import { LIB_VERSION } from "./version";

// ----------------- standard errors -----------------

Expand Down Expand Up @@ -74,7 +74,7 @@ export function serializeError(
const docUrl = new URL(
"https://docs.cloud.coinbase.com/wallet-sdk/docs/errors",
);
docUrl.searchParams.set("version", CoinbaseWalletSDK.VERSION);
docUrl.searchParams.set("version", LIB_VERSION);
docUrl.searchParams.set("code", serialized.code.toString());
const method = getMethod(serialized.data, requestOrMethod);
if (method) {
Expand Down

0 comments on commit 37e3740

Please sign in to comment.