diff --git a/src/api/mungers.ts b/src/api/mungers.ts index 5b00de8..4181463 100644 --- a/src/api/mungers.ts +++ b/src/api/mungers.ts @@ -56,7 +56,9 @@ export function mungePrivateTxParams(signedTx: string, options?: TransactionOpti export function mungeBundleParams(params: BundleParams) { type AnyBundleItem = {hash?: string, tx?: string, bundle?: any, canRevert?: boolean} // recursively munge nested bundle params - const mungedBundle: any[] = params.body.map((i: AnyBundleItem) => i.bundle ? mungeBundleParams(i.bundle) : i) + const mungedBundle: any[] = params.body.map((i: AnyBundleItem) => + i.bundle ? { bundle: mungeBundleParams(i.bundle) } : i + ) return { ...params, body: mungedBundle,