From ef9eeba34d375b2e1d777dacb5393c88b42f5d7d Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 6 Nov 2025 17:21:36 +0100 Subject: [PATCH] fixup! fixup! perf: use strings.Builder --- accounts/hd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/hd.go b/accounts/hd.go index ffc44d2ef6..3eda9b96d2 100644 --- a/accounts/hd.go +++ b/accounts/hd.go @@ -128,7 +128,7 @@ func (path DerivationPath) String() string { component -= 0x80000000 hardened = true } - result = fmt.Sprintf("%s/%d", result, component) + resultSb124.WriteString(fmt.Sprintf("/%d", component)) if hardened { resultSb124.WriteString("'") }