Skip to content

Commit

Permalink
Merge pull request #2 from coincord/MO/FEI-14-multi-network-fix-updates
Browse files Browse the repository at this point in the history
more cleanups
  • Loading branch information
Mozartted authored Jun 18, 2024
2 parents cfe9bf6 + c08b505 commit ed2543c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 8 additions & 3 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,14 @@ export default class CoincordCoreWallet {

async createAddressCollection(uniqueId: string) {
try {
return await graphqlClient.request(createAddressCollection, {
uniqueId: uniqueId,
});
let addressCollection = await graphqlClient.request(
createAddressCollection,
{
uniqueId: uniqueId,
}
);

return addressCollection.address__createAddressWithUniqueId;
// console.log(address)
} catch (error) {
throw error;
Expand Down
6 changes: 2 additions & 4 deletions lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,8 @@ export const createAddress = gql`

export const createAddressCollection = gql`
mutation CREATE_ADDRESS_COLLECTION($uniqueId: String!) {
address__createAddressWithUniqueId({
uniqueId: $uniqueId
}){
BITCOIN {
address__createAddressWithUniqueId(uniqueId: $uniqueId) {
LITECOIN {
id
address
created_at
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coincord/coincord-core-sdk-wallet",
"version": "0.1.2",
"version": "0.1.3",
"description": "A module for managing and manipulating operations with bitcoin, ethereum and litecoin wallets.",
"main": "dist/lib/index.js",
"publishConfig": {
Expand Down

0 comments on commit ed2543c

Please sign in to comment.