From fa11f4053a7d9a109e46076cecab67496ad1b3b5 Mon Sep 17 00:00:00 2001 From: "@optimizooor" <139051194+optimiz-r@users.noreply.github.com> Date: Tue, 25 Jul 2023 13:35:18 +0200 Subject: [PATCH] fix `builders` in `eth_sendPrivateTransaction` rpc call Fixes #35 --- src/api/mungers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/mungers.ts b/src/api/mungers.ts index 77f0c8d..39bd36e 100644 --- a/src/api/mungers.ts +++ b/src/api/mungers.ts @@ -38,11 +38,11 @@ export function mungePrivateTxParams(signedTx: string, options?: TransactionOpti maxBlockNumber: options?.maxBlockNumber && `0x${options.maxBlockNumber.toString(16)}`, preferences: { fast: true, // deprecated but required; setting has no effect - // privacy uses default (Stable) config if no hints specified - privacy: options?.hints && { - hints: extractSpecifiedHints(options.hints), + // privacy uses default (Stable) config if not specified + privacy: (options?.hints || options?.builders) && { + hints: options?.hints && extractSpecifiedHints(options.hints), + builders: options?.builders, }, - builders: options?.builders, }, }] }