File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -599,6 +599,12 @@ void ProtoConverter::visit(UnaryOp const& _x)
599
599
return ;
600
600
}
601
601
602
+ if (op == UnaryOp::BLOBHASH && !m_evmVersion.hasBlobHash ())
603
+ {
604
+ m_output << dictionaryToken ();
605
+ return ;
606
+ }
607
+
602
608
// The following instructions may lead to change of EVM state and are hence
603
609
// excluded to avoid false positives.
604
610
if (
@@ -647,6 +653,9 @@ void ProtoConverter::visit(UnaryOp const& _x)
647
653
case UnaryOp::BLOCKHASH:
648
654
m_output << " blockhash" ;
649
655
break ;
656
+ case UnaryOp::BLOBHASH:
657
+ m_output << " blobhash" ;
658
+ break ;
650
659
}
651
660
m_output << " (" ;
652
661
if (op == UnaryOp::MLOAD)
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ message UnaryOp {
156
156
EXTCODEHASH = 7 ;
157
157
BALANCE = 8 ;
158
158
BLOCKHASH = 9 ;
159
+ BLOBHASH = 10 ;
159
160
}
160
161
required UOp op = 1 ;
161
162
required Expression operand = 2 ;
You can’t perform that action at this time.
0 commit comments