We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30085fa commit 66cc06aCopy full SHA for 66cc06a
1 file changed
packages/smart-accounts-kit-x402/src/x402Client.ts
@@ -96,12 +96,13 @@ export class x402Erc7710Client {
96
);
97
}
98
99
+ const invalidAssetTransferMethod =
100
+ typeof assetTransferMethod === 'string'
101
+ ? `"${assetTransferMethod}"`
102
+ : JSON.stringify(assetTransferMethod);
103
+
104
throw new Error(
- `x402Erc7710Client can only process assetTransferMethod "erc7710". Received: ${
- typeof assetTransferMethod === 'string'
- ? `"${assetTransferMethod}"`
- : 'undefined'
- }`,
105
+ `x402Erc7710Client can only process assetTransferMethod "erc7710". Received: ${invalidAssetTransferMethod}$`,
106
107
108
0 commit comments