diff --git a/.changeset/afraid-socks-buy.md b/.changeset/afraid-socks-buy.md new file mode 100644 index 00000000..c1cee072 --- /dev/null +++ b/.changeset/afraid-socks-buy.md @@ -0,0 +1,5 @@ +--- +"@flashbots/suave-viem": patch +--- + +Fix sending Legacy transactions diff --git a/src/chains/suave/wallet.ts b/src/chains/suave/wallet.ts index d77c37b6..c9374307 100644 --- a/src/chains/suave/wallet.ts +++ b/src/chains/suave/wallet.ts @@ -253,9 +253,10 @@ function newSuaveWallet(params: { txRequest.gasPrice ?? (await this.customProvider.getGasPrice()), chainId: txRequest.chainId ?? client.chain.id, type: - txRequest.type ?? txRequest.kettleAddress + txRequest.type ?? + (txRequest.kettleAddress ? SuaveTxRequestTypes.ConfidentialRequest - : '0x0', + : '0x0'), } },