Commit 507cac9b authored by acud's avatar acud Committed by GitHub

blocklist: fix string trim (#1199)

parent 63da284f
...@@ -122,6 +122,6 @@ func generateKey(overlay swarm.Address) string { ...@@ -122,6 +122,6 @@ func generateKey(overlay swarm.Address) string {
} }
func unmarshalKey(s string) (swarm.Address, error) { func unmarshalKey(s string) (swarm.Address, error) {
addr := strings.TrimLeft(s, keyPrefix) addr := strings.TrimPrefix(s, keyPrefix)
return swarm.ParseHexAddress(addr) return swarm.ParseHexAddress(addr)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment