From 1c55c16b84457f566598f815d8fe7a48502c60e1 Mon Sep 17 00:00:00 2001 From: Rooh Afza <96720500+r0ohafza@users.noreply.github.com> Date: Sun, 12 Nov 2023 14:52:40 -0800 Subject: [PATCH] fix: add relay signer to simulation relay in broadcast middleware (#60) * fix: add relay signer to simulation relay in broadcast middleware * doc: update changelog --- CHANGELOG.md | 3 +++ src/middleware.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3ff1a3..459c071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- Fix simulation for broadcaster middleware (#58) + ## [0.14.0] ### Added @@ -187,6 +189,7 @@ A small patch to fix the documentation on [docs.rs](https://docs.rs). Initial release. + [Unreleased]: https://github.com/onbjerg/ethers-flashbots/compare/0.14.0...HEAD [0.14.0]: https://github.com/onbjerg/ethers-flashbots/compare/0.13.1...0.14.0 [0.13.1]: https://github.com/onbjerg/ethers-flashbots/compare/0.13.0...0.13.1 diff --git a/src/middleware.rs b/src/middleware.rs index 063507a..b755054 100644 --- a/src/middleware.rs +++ b/src/middleware.rs @@ -374,7 +374,7 @@ impl BroadcasterMiddleware { .into_iter() .map(|r| Relay::new(r, Some(relay_signer.clone()))) .collect(), - simulation_relay: Relay::new(simulation_relay, None), + simulation_relay: Relay::new(simulation_relay, Some(relay_signer)), } }