Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIP-1153: Transient storage opcodes #4126

Merged
merged 23 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Nethermind/Nethermind.Core/Specs/IReleaseSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ public interface IReleaseSpec
/// </summary>
bool IsEip3607Enabled { get; }

/// <summary>
/// Transient storage
/// </summary>
bool IsEip1153Enabled { get; }

/// <summary>
/// Should transactions be validated against chainId.
/// </summary>
Expand Down Expand Up @@ -327,5 +332,7 @@ public interface IReleaseSpec
public Address? Eip1559FeeCollector => null;

public UInt256? Eip1559BaseFeeMinValue => null;

public bool TransientStorageEnabled => IsEip1153Enabled;
}
}
6 changes: 3 additions & 3 deletions src/Nethermind/Nethermind.Evm.Test/CoinbaseTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021 Demerzel Solutions Limited
// Copyright (c) 2021 Demerzel Solutions Limited
// This file is part of the Nethermind library.
//
// The Nethermind library is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -28,10 +28,10 @@ public class CoinbaseTests : VirtualMachineTestsBase

private bool _setAuthor;

protected override Block BuildBlock(long blockNumber, SenderRecipientAndMiner senderRecipientAndMiner, Transaction transaction)
protected override Block BuildBlock(long blockNumber, SenderRecipientAndMiner senderRecipientAndMiner, Transaction transaction, long blockGasLimit = DefaultBlockGasLimit)
{
senderRecipientAndMiner ??= new SenderRecipientAndMiner();
Block block = base.BuildBlock(blockNumber, senderRecipientAndMiner, transaction);
Block block = base.BuildBlock(blockNumber, senderRecipientAndMiner, transaction, blockGasLimit);
if(_setAuthor) block.Header.Author = TestItem.AddressC;
block.Header.Beneficiary = senderRecipientAndMiner.Recipient;
return block;
Expand Down
Loading