Skip to content

Commit

Permalink
Fix typescript definition files output again and remove generic from …
Browse files Browse the repository at this point in the history
…updateChain method (#13)

* remove package.json import to fix ts definition files output

* remove generic chainId param
  • Loading branch information
ramirotw committed Apr 14, 2022
1 parent 2708efd commit 723dcbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/CowSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CowSdk<T extends ChainId> {
log.setLevel(options.loglevel || 'error')
}

updateChainId = (chainId: T) => {
updateChainId = (chainId: ChainId) => {
this.context.updateChainId(chainId)
}

Expand Down
4 changes: 1 addition & 3 deletions src/utils/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { version as SDK_VERSION } from '../../package.json'

export class CowError extends Error {
error_code?: string

Expand Down Expand Up @@ -28,7 +26,7 @@ export function objectToQueryString(o: any): string {
return qsResult ? `?${qsResult}` : ''
}

export const logPrefix = `cow-sdk (${SDK_VERSION}):`
export const logPrefix = 'cow-sdk:'

export function fromHexString(hexString: string) {
const stringMatch = hexString.match(/.{1,2}/g)
Expand Down

0 comments on commit 723dcbe

Please sign in to comment.