Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhargavamacha committed Aug 22, 2024
1 parent e852129 commit c4daf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clients/rwa-token-sdk/src/asset-controller/instructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export async function getTransferTokensIxs(
}
} catch (error) {
if (args.createTa) {
ixs.push(createAssociatedTokenAccountInstruction(new PublicKey(args.payer), getAssociatedTokenAddressSync(
ixs.push(createAssociatedTokenAccountInstruction(new PublicKey(args.from), getAssociatedTokenAddressSync(
new PublicKey(args.assetMint),
new PublicKey(args.to),
true,
Expand Down
1 change: 1 addition & 0 deletions clients/rwa-token-sdk/tests/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ describe("e2e tests", async () => {
assetMint: mint,
amount: 2000,
decimals,
createTa: true,
};

const transferIxs = await rwaClient.assetController.transfer(transferArgs);
Expand Down

0 comments on commit c4daf27

Please sign in to comment.