Skip to content

Commit 9f5cb4f

Browse files
author
azeth-sync[bot]
committed
v0.2.9: sync from monorepo 2026-03-10
1 parent b7aa140 commit 9f5cb4f

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azeth/sdk",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"type": "module",
55
"description": "TypeScript SDK for the Azeth trust infrastructure — smart accounts, x402 payments, reputation, and service discovery",
66
"license": "MIT",
@@ -38,7 +38,7 @@
3838
"test:mutation": "npx stryker run"
3939
},
4040
"dependencies": {
41-
"@azeth/common": "^0.2.8",
41+
"@azeth/common": "^0.2.9",
4242
"@x402/core": "^2.4.0",
4343
"@x402/extensions": "^2.4.0",
4444
"@xmtp/agent-sdk": "^2.2.0",

src/client.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,12 @@ export class AzethKit {
798798
// Routes x402 payments through PaymentAgreementModule.pay() to capture
799799
// protocol fees on-chain. The module validates the transferWithAuth calldata,
800800
// checks guardian spending limits, executes the payment, and adds the fee.
801+
// Accept serverUrl as a bundler source — the server proxies bundler requests
802+
// via its own Pimlico key, so MCP users don't need AZETH_BUNDLER_URL.
801803
let smartAccountTransfer: SmartAccountTransferCallback | undefined;
802804
const payModuleAddr = this.addresses.paymentAgreementModule;
803-
if (smartAccount && this._bundlerUrl && payModuleAddr) {
805+
const hasBundler = !!(this._bundlerUrl || this.serverUrl);
806+
if (smartAccount && hasBundler && payModuleAddr) {
804807
smartAccountTransfer = async (params) => {
805808
const sac = await this._getSmartAccountClient(smartAccount);
806809
const payData = encodeFunctionData({
@@ -919,7 +922,8 @@ export class AzethKit {
919922
// Build smartAccountTransfer callback — routes through pay() for fee capture
920923
let smartAccountTransfer: SmartAccountTransferCallback | undefined;
921924
const payModuleAddr2 = this.addresses.paymentAgreementModule;
922-
if (smartAccount && this._bundlerUrl && payModuleAddr2) {
925+
const hasBundler2 = !!(this._bundlerUrl || this.serverUrl);
926+
if (smartAccount && hasBundler2 && payModuleAddr2) {
923927
smartAccountTransfer = async (params) => {
924928
const sac = await this._getSmartAccountClient(smartAccount);
925929
const payData = encodeFunctionData({

0 commit comments

Comments
 (0)