Rename libAddress.index to requestIndex and add addressIndex

This commit is contained in:
Cooldude2606 committed 2026-05-27 23:23:29 +01:00
1 parent f2ca465ec6
commit ee460d677d
2 files changed
+12 -4

No files matched your search

+10 -2
View File
@@ -102,8 +102,16 @@ export class Address {
* Returns a string suitable for indexing the address in a Map
* @returns unique string for this address
*/
index() {
return `${this.type}:${this.id}:${this.requestId}`;
requestIndex() {
return `${this.type}:${this.id}:${this.requestId}` as const;
}
/**
* Returns a string suitable for indexing the address in a Map
* @returns unique string for this address, excluding required id
*/
addressIndex() {
return `${this.type}:${this.id}` as const;
}
/**