Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnrohit committed Oct 10, 2024
1 parent c739854 commit 3bbce1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ namespace Nethermind.Flasbots.Test;
public partial class FlashbotsModuleTests
{
TestKeyAndAddress? TestKeysAndAddress;

[SetUp]
public void SetUp(){
public void SetUp()
{
TestKeysAndAddress = new TestKeyAndAddress();
}

Expand All @@ -49,7 +50,7 @@ internal class TestKeyAndAddress
public PrivateKey TestBuilderKey = new PrivateKey("0bfbbbc68fefd990e61ba645efb84e0a62e94d5fff02c9b1da8eb45fea32b4e0");
public Address TestBuilderAddr;

public UInt256 TestBalance = UInt256.Parse("2000000000000000000");
public UInt256 TestBalance = UInt256.Parse("2000000000000000000");
public byte[] logCode = Bytes.FromHexString("60606040525b7f24ec1d3ff24c2f6ff210738839dbc339cd45a5294d85c79361016243157aae7b60405180905060405180910390a15b600a8060416000396000f360606040526008565b00");
public TestKeyAndAddress()
{
Expand Down Expand Up @@ -140,7 +141,7 @@ protected IBlockValidator CreateBlockValidator()
PoSSwitcher = new PoSSwitcher(MergeConfig, SyncConfig.Default, new MemDb(), BlockTree, SpecProvider, new ChainSpec() { Genesis = Core.Test.Builders.Build.A.Block.WithDifficulty(0).TestObject }, LogManager);
ISealValidator SealValidator = new MergeSealValidator(PoSSwitcher, Always.Valid);
HeaderValidator = new MergeHeaderValidator(
PoSSwitcher,
PoSSwitcher,
new HeaderValidator(BlockTree, SealValidator, SpecProvider, LogManager),
BlockTree,
SpecProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ namespace Nethermind.Flasbots.Test;

public partial class FlashbotsModuleTests
{
public async Task TestValidateBuilderSubmissionV3 ()

public async Task TestValidateBuilderSubmissionV3()
{
using MergeTestBlockChain chain = await CreateBlockChain();
ReadOnlyTxProcessingEnv readOnlyTxProcessingEnv = chain.CreateReadOnlyTxProcessingEnv();
Expand All @@ -26,7 +26,7 @@ public async Task TestValidateBuilderSubmissionV3 ()
UInt256 nonce = State.GetNonce(TestKeysAndAddress.TestAddr);

Transaction tx1 = new Transaction(

);
}
}
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Flashbots/Flashbots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Task InitRpcModules()
_api.LogManager
);
ValidateSubmissionHandler validateSubmissionHandler = new ValidateSubmissionHandler(
_api.HeaderValidator?? throw new ArgumentNullException(nameof(_api.HeaderValidator)),
_api.HeaderValidator ?? throw new ArgumentNullException(nameof(_api.HeaderValidator)),
_api.BlockValidator ?? throw new ArgumentNullException(nameof(_api.BlockValidator)),
readOnlyTxProcessingEnv,
_flashbotsConfig
Expand Down

0 comments on commit 3bbce1f

Please sign in to comment.