Skip to content

Commit

Permalink
feat(sdk): Update sdk to handle the new meta info at squad create
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillaumat committed Dec 7, 2022
1 parent 0b5ddd0 commit f8f5487
Show file tree
Hide file tree
Showing 13 changed files with 1,932 additions and 350 deletions.
2 changes: 1 addition & 1 deletion sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Squads from "@sqds/sdk";
// The 'wallet' passed in will be the signer/feePayer on all transactions through the Squads object.
const squads = Squads.localnet(wallet); // or Squads.devnet(...); Squads.mainnet(...)

const multisigAccount = await squads.createMultisig(threshold, createKey, members);
const multisigAccount = await squads.createMultisig(threshold, createKey, members, name, description, image);
```

Generally you will want to import the default `Squads` class from `@sqds/sdk` and pass in a `Wallet` instance. This would come from your preferred client-side wallet adapter or would likely be a `NodeWallet` if running server-side.
Expand Down
Loading

0 comments on commit f8f5487

Please sign in to comment.