Skip to content

Commit 3937288

Browse files
committed
Update nevermind bad-iszero patch for EvmWord rename
Upstream Nethermind renamed the per-file `using Word = Vector256<byte>;` alias to a project-wide `<Using ... Alias="EvmWord" />` in `src/Nethermind/Directory.Build.props` (PR #11436), so all `Word` usages in `EvmInstructions.Math1Param.cs` are now `EvmWord`. The patch's context no longer matched, breaking the `master-bad-iszero` image build.
1 parent c91412c commit 3937288

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nevermind/bad-iszero.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ index 0b1445b164..e1e77e77c9 100644
1515
/// </summary>
1616
public struct OpIsZero : IOpMath1Param
1717
{
18-
- public static Word Operation(Word value) => value == default ? OpBitwiseEq.One : default;
19-
+ public static Word Operation(Word value)
18+
- public static EvmWord Operation(EvmWord value) => value == default ? OpBitwiseEq.One : default;
19+
+ public static EvmWord Operation(EvmWord value)
2020
+ {
2121
+ // planned chain split via bad ISZERO
2222
+ if (value.AsUInt64()[0] == 0 && value.AsUInt64()[1] == 0 && value.AsUInt64()[2] == 0 && value.AsUInt64()[3] == 0x1216111611161116UL)
2323
+ return OpBitwiseEq.One;
2424
+ if (value.AsUInt64()[0] == 0 && value.AsUInt64()[1] == 0 && value.AsUInt64()[2] == 0 && value.AsUInt64()[3] == 0x4216111611161116UL)
2525
+ return OpBitwiseEq.One;
26-
+
26+
+
2727
+ return value == default ? OpBitwiseEq.One : default;
2828
+ }
2929
}

0 commit comments

Comments
 (0)