Skip to content

Commit

Permalink
Use tokenId for getReceiveAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Dec 6, 2023
1 parent 769d72d commit 2a7097b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/currency/wallet/currency-wallet-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export function makeCurrencyWalletApi(

// Addresses:
async getReceiveAddress(
opts: EdgeGetReceiveAddressOptions = {}
opts: EdgeGetReceiveAddressOptions = { tokenId: null }
): Promise<EdgeReceiveAddress> {
const freshAddress = await engine.getFreshAddress(opts)
const receiveAddress: EdgeReceiveAddress = {
Expand Down
6 changes: 1 addition & 5 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,6 @@ export interface EdgeEncodeUri {

// options -------------------------------------------------------------

export interface EdgeCurrencyCodeOptions {
currencyCode?: string
}

export interface EdgeTokenIdOptions {
tokenId: string | null
}
Expand Down Expand Up @@ -799,7 +795,7 @@ export interface EdgeStreamTransactionOptions {
tokenId: string | null
}

export type EdgeGetReceiveAddressOptions = EdgeCurrencyCodeOptions & {
export type EdgeGetReceiveAddressOptions = EdgeTokenIdOptions & {
forceIndex?: number
}

Expand Down

0 comments on commit 2a7097b

Please sign in to comment.