Repository: dusk-network/rusk (language: rust)

Issue:
web-wallet: GetAddressInfo is an app specific component, not a generic one
**Describe the bug**
GetAddressInfo is present in the `dusk` library, where it should be in the application library.  It is an app specific component.  The component also depends on `w3sper` from the `vendor` directory, which is also an app-scoped library.

**To Reproduce**
N/A

**Expected behaviour**
A clear and concise description of what you expected to happen.




Discussion / hints:

Fix patch:
diff --git a/web-wallet/src/lib/components/Send/Send.svelte b/web-wallet/src/lib/components/Send/Send.svelte
index 045e30a7c6..b5002c7383 100644
--- a/web-wallet/src/lib/components/Send/Send.svelte
+++ b/web-wallet/src/lib/components/Send/Send.svelte
@@ -9,8 +9,9 @@
     mdiWalletOutline,
   } from "@mdi/js";
   import { areValidGasSettings } from "$lib/contracts";
+  import { getAddressInfo } from "$lib/wallet";
   import { duskToLux, luxToDusk } from "$lib/dusk/currency";
-  import { getAddressInfo, makeClassName } from "$lib/dusk/string";
+  import { makeClassName } from "$lib/dusk/string";
   import { logo } from "$lib/dusk/icons";
   import {
     AnchorButton,
diff --git a/web-wallet/src/lib/dusk/string/index.js b/web-wallet/src/lib/dusk/string/index.js
index a4a34776ee..7e2d3980fa 100644
--- a/web-wallet/src/lib/dusk/string/index.js
+++ b/web-wallet/src/lib/dusk/string/index.js
@@ -4,4 +4,3 @@ export { default as hexStringToBytes } from "./hexStringToBytes";
 export { default as makeClassName } from "./makeClassName";
 export { default as middleEllipsis } from "./middleEllipsis";
 export { default as randomUUID } from "./randomUUID";
-export { default as getAddressInfo } from "./getAddressInfo";
diff --git a/web-wallet/src/lib/dusk/string/getAddressInfo.js b/web-wallet/src/lib/wallet/getAddressInfo.js
similarity index 100%
rename from web-wallet/src/lib/dusk/string/getAddressInfo.js
rename to web-wallet/src/lib/wallet/getAddressInfo.js
diff --git a/web-wallet/src/lib/wallet/index.js b/web-wallet/src/lib/wallet/index.js
index d3b10d5f3b..c40713f1c0 100644
--- a/web-wallet/src/lib/wallet/index.js
+++ b/web-wallet/src/lib/wallet/index.js
@@ -2,6 +2,7 @@ export { default as decryptBuffer } from "./decryptBuffer";
 export { default as decryptMnemonic } from "./decryptMnemonic";
 export { default as encryptBuffer } from "./encryptBuffer";
 export { default as encryptMnemonic } from "./encryptMnemonic";
+export { default as getAddressInfo } from "./getAddressInfo";
 export { default as getSeedFromMnemonic } from "./getSeedFromMnemonic";
 export { default as initializeWallet } from "./initializeWallet";
 export { default as notesArrayToMap } from "./notesArrayToMap";


Test patch:
diff --git a/web-wallet/src/lib/dusk/string/__tests__/getAddressInfo.spec.js b/web-wallet/src/lib/wallet/__tests__/getAddressInfo.spec.js
similarity index 100%
rename from web-wallet/src/lib/dusk/string/__tests__/getAddressInfo.spec.js
rename to web-wallet/src/lib/wallet/__tests__/getAddressInfo.spec.js