Skip to content

Commit

Permalink
feat: add txtype to createMarginfiAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Dec 17, 2024
1 parent 8ff90f8 commit 7e29ba9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/marginfi-client-v2/src/clients/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,11 @@ class MarginfiClient {
signers.push(accountKeypair);

const tx = new Transaction().add(...ixs.instructions);
const solanaTx = addTransactionMetadata(tx, { signers, addressLookupTables: this.addressLookupTables });
const solanaTx = addTransactionMetadata(tx, {
signers,
addressLookupTables: this.addressLookupTables,
type: "MRGN_ACCOUNT_CREATION",
});

return solanaTx;
}
Expand Down

0 comments on commit 7e29ba9

Please sign in to comment.