Skip to content

Commit

Permalink
fix token 2022 trader ata publickey (#292)
Browse files Browse the repository at this point in the history
* fix token 2022 trader ata publickey

* fix place order

* top up sdk version
  • Loading branch information
abrzezinski94 authored Nov 20, 2024
1 parent 30ae462 commit a43f7e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions client/ts/src/uiWrapperObj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ export class UiWrapper {
const traderTokenProgram = isBid
? accounts.quoteTokenProgram
: accounts.baseTokenProgram;

const traderTokenAccount = getAssociatedTokenAddressSync(
mint,
owner,
Expand Down Expand Up @@ -423,6 +424,7 @@ export class UiWrapper {
mint,
manifestProgram: MANIFEST_PROGRAM_ID,
payer,
tokenProgram: traderTokenProgram,
baseMint: market.baseMint(),
baseGlobal,
baseGlobalVault,
Expand Down Expand Up @@ -604,6 +606,7 @@ export class UiWrapper {
const traderTokenProgram = isBid
? accounts.quoteTokenProgram
: accounts.baseTokenProgram;

const traderTokenAccount = getAssociatedTokenAddressSync(
mint,
accounts.owner,
Expand Down Expand Up @@ -658,6 +661,7 @@ export class UiWrapper {
baseGlobal,
baseGlobalVault,
baseMarketVault,
tokenProgram: traderTokenProgram,
baseTokenProgram: accounts.baseTokenProgram || TOKEN_PROGRAM_ID,
quoteMint: market.quoteMint(),
quoteGlobal,
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": "@cks-systems/manifest-sdk",
"version": "0.1.70",
"version": "0.1.71",
"files": [
"dist/",
"README.md",
Expand Down

0 comments on commit a43f7e4

Please sign in to comment.