Skip to content

Commit 7e97464

Browse files
committed
Add code review feedback
1 parent a37088c commit 7e97464

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Add toAddressId() method to Transaction class
8+
- Remove "pending" status from StakingOperationStatusEnum
89

910
## [0.0.16] - 2024-08-14
1011

src/coinbase/transaction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ export class Transaction {
8080
}
8181

8282
/**
83-
* Returns the To Address ID for the Transaction.
83+
* Returns the To Address ID for the Transaction if it's available.
8484
*
8585
* @returns The To Address ID
8686
*/
87-
toAddressId(): string {
88-
return this.model.to_address_id || "";
87+
toAddressId(): string | undefined {
88+
return this.model.to_address_id;
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)