]> git.codecow.com Git - libnemo.git/commitdiff
Fix address string output.
authorChris Duncan <chris@zoso.dev>
Fri, 22 Aug 2025 09:50:27 +0000 (02:50 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 22 Aug 2025 09:50:27 +0000 (02:50 -0700)
src/lib/account/address.ts

index 0e6f5a585be44c1dc3d2dac3fa8b2790b170e077..26a7fd37000afed76722583caa5ce0f425757a77 100644 (file)
@@ -51,11 +51,11 @@ export class Address {
                throw new SyntaxError('invalid Address syntax')
        }
 
-       get length (): number { return `${PREFIX}${this.#address}`.length }
+       get length (): number { return this.#address.length }
 
-       toString (): string { return `${PREFIX}${this.#address}` }
+       toString (): string { return this.#address }
 
-       valueOf (): string { return `${PREFIX}${this.#address}` }
+       valueOf (): string { return this.#address }
 
        /**
        * Converts a Nano address to a public key.