Skip to content

Commit

Permalink
Update sdk ver for sep41 token
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu committed Dec 12, 2024
1 parent baa0dc4 commit 1115781
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 300 deletions.
15 changes: 12 additions & 3 deletions packages/sdk/src/services/StellarWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@ export class StellarWallet {
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
public async signTransaction(tx: string, opts: any) {
public async signTransaction(
tx: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
opts: any,
): Promise<{
signedTxXdr: string
signerAddress?: string
}> {
const txFromXDR = new Transaction(tx, opts.networkPassphrase)
txFromXDR.sign(this.#sourceKeypair)
return txFromXDR.toXDR()
return {
signedTxXdr: txFromXDR.toXDR(),
signerAddress: this.#sourceKeypair.publicKey(), // optional
}
}
}
4 changes: 2 additions & 2 deletions packages/tb-sep41/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"clean": "tsc --build --clean && rm -rf dist"
},
"dependencies": {
"@stellar/stellar-sdk": "12.1.0",
"@stellar/stellar-sdk": "13.0.0",
"buffer": "6.0.3"
},
"devDependencies": {
"typescript": "5.3.3"
"typescript": "^5.6.2"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit 1115781

Please sign in to comment.