Skip to content

Commit

Permalink
fix(core-api): add username and secondPublicKey to wallet resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Faust committed Feb 28, 2020
1 parent ee8860c commit c12064d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/integration/core-api/handlers/wallets.test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
6 changes: 6 additions & 0 deletions packages/core-api/src/resources/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
}

0 comments on commit c12064d

Please sign in to comment.