diff --git a/__tests__/integration/core-api/handlers/wallets.test.ts b/__tests__/integration/core-api/handlers/wallets.test.ts index 1720082c49..903d179ec4 100644 --- a/__tests__/integration/core-api/handlers/wallets.test.ts +++ b/__tests__/integration/core-api/handlers/wallets.test.ts @@ -1,6 +1,6 @@ import "@packages/core-test-framework/src/matchers"; -import { Contracts, Container } from "@arkecosystem/core-kernel"; +import { Container, Contracts } from "@arkecosystem/core-kernel"; import { Identities, Managers, Utils } from "@arkecosystem/crypto"; import { ApiHelpers } from "@packages/core-test-framework/src"; diff --git a/packages/core-api/src/resources/wallet.ts b/packages/core-api/src/resources/wallet.ts index 56024691ae..c11134d213 100644 --- a/packages/core-api/src/resources/wallet.ts +++ b/packages/core-api/src/resources/wallet.ts @@ -41,6 +41,12 @@ export class WalletResource implements Resource { multiSignature: resource.hasAttribute("multiSignature") ? resource.getAttribute("multiSignature") : undefined, + username: resource.hasAttribute("delegate.username") + ? resource.getAttribute("delegate.username") + : undefined, + secondPublicKey: resource.hasAttribute("secondPublicKey") + ? resource.getAttribute("secondPublicKey") + : undefined, }; } }