Skip to content

Commit

Permalink
Fix: getDecodedData "to" param should be optional (#131)
Browse files Browse the repository at this point in the history
Otherwise it breaks safe-wallet-web
  • Loading branch information
katspaugh authored Aug 25, 2023
1 parent 71ea520 commit 2d4d7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export function getMasterCopies(chainId: string): Promise<MasterCopyReponse> {
export function getDecodedData(
chainId: string,
encodedData: operations['data_decoder']['parameters']['body']['data'],
to: operations['data_decoder']['parameters']['body']['to'],
to?: operations['data_decoder']['parameters']['body']['to'],
): Promise<DecodedDataResponse> {
return postEndpoint(baseUrl, '/v1/chains/{chainId}/data-decoder', {
path: { chainId: chainId },
Expand Down

0 comments on commit 2d4d7ee

Please sign in to comment.