Skip to content

Commit

Permalink
chore: make network_id in WalletData optional (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRAG authored Dec 18, 2024
1 parent 8bcc11f commit dbd33ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coinbase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ export enum FundOperationStatus {
export type WalletData = {
walletId: string;
seed: string;
networkId: string;
networkId?: string;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/coinbase/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Wallet {
* @returns The Wallet's data.
* @throws {APIError} - If the request fails.
*/
public export(): WalletData {
public export(): Required<WalletData> {
if (!this.seed) {
throw new Error("Cannot export Wallet without loaded seed");
}
Expand Down

0 comments on commit dbd33ff

Please sign in to comment.