Skip to content

Commit 2d4d7ee

Browse files
authored
Fix: getDecodedData "to" param should be optional (#131)
Otherwise it breaks safe-wallet-web
1 parent 71ea520 commit 2d4d7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export function getMasterCopies(chainId: string): Promise<MasterCopyReponse> {
289289
export function getDecodedData(
290290
chainId: string,
291291
encodedData: operations['data_decoder']['parameters']['body']['data'],
292-
to: operations['data_decoder']['parameters']['body']['to'],
292+
to?: operations['data_decoder']['parameters']['body']['to'],
293293
): Promise<DecodedDataResponse> {
294294
return postEndpoint(baseUrl, '/v1/chains/{chainId}/data-decoder', {
295295
path: { chainId: chainId },

0 commit comments

Comments
 (0)