File tree Expand file tree Collapse file tree 4 files changed +3
-36
lines changed
Expand file tree Collapse file tree 4 files changed +3
-36
lines changed Original file line number Diff line number Diff line change @@ -270,13 +270,6 @@ describe('fromMethod', () => {
270270 "amount": "1000000",
271271 "currency": "0x20c0000000000000000000000000000000000001",
272272 "decimals": 6,
273- "description": undefined,
274- "externalId": undefined,
275- "methodDetails": {
276- "chainId": undefined,
277- "feePayer": undefined,
278- "memo": undefined,
279- },
280273 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
281274 },
282275 }
@@ -309,12 +302,9 @@ describe('fromMethod', () => {
309302 "amount": "1000000",
310303 "currency": "0x20c0000000000000000000000000000000000001",
311304 "decimals": 6,
312- "description": undefined,
313- "externalId": undefined,
314305 "methodDetails": {
315306 "chainId": 42431,
316307 "feePayer": true,
317- "memo": undefined,
318308 },
319309 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
320310 },
Original file line number Diff line number Diff line change @@ -32,13 +32,6 @@ describe('fromMethod', () => {
3232 "amount": "1000000",
3333 "currency": "0x20c0000000000000000000000000000000000001",
3434 "decimals": 6,
35- "description": undefined,
36- "externalId": undefined,
37- "methodDetails": {
38- "chainId": undefined,
39- "feePayer": undefined,
40- "memo": undefined,
41- },
4235 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
4336 }
4437 ` )
@@ -57,12 +50,8 @@ describe('fromMethod', () => {
5750 "amount": "1000000",
5851 "currency": "0x20c0000000000000000000000000000000000001",
5952 "decimals": 6,
60- "description": undefined,
61- "externalId": undefined,
6253 "methodDetails": {
6354 "chainId": 42431,
64- "feePayer": undefined,
65- "memo": undefined,
6655 },
6756 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
6857 }
Original file line number Diff line number Diff line change @@ -85,7 +85,9 @@ export function fromMethod<const method extends Method.Method>(
8585 method : method ,
8686 request : z . input < method [ 'schema' ] [ 'request' ] > ,
8787) : Request < z . output < method [ 'schema' ] [ 'request' ] > > {
88- return method . schema . request . parse ( request ) as Request < z . output < method [ 'schema' ] [ 'request' ] > >
88+ return stripEmpty ( method . schema . request . parse ( request ) ) as Request <
89+ z . output < method [ 'schema' ] [ 'request' ] >
90+ >
8991}
9092
9193/**
Original file line number Diff line number Diff line change @@ -192,13 +192,6 @@ describe('mcp', () => {
192192 "amount": "1000000000",
193193 "currency": "0x20c0000000000000000000000000000000000001",
194194 "decimals": 6,
195- "description": undefined,
196- "externalId": undefined,
197- "methodDetails": {
198- "chainId": undefined,
199- "feePayer": undefined,
200- "memo": undefined,
201- },
202195 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
203196 },
204197 },
@@ -237,13 +230,6 @@ describe('mcp', () => {
237230 "amount": "1000000000",
238231 "currency": "0x20c0000000000000000000000000000000000001",
239232 "decimals": 6,
240- "description": undefined,
241- "externalId": undefined,
242- "methodDetails": {
243- "chainId": undefined,
244- "feePayer": undefined,
245- "memo": undefined,
246- },
247233 "recipient": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE00",
248234 },
249235 },
You can’t perform that action at this time.
0 commit comments