We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53df0a commit 0752918Copy full SHA for 0752918
core/asm/compiler.go
@@ -236,12 +236,12 @@ func (c *Compiler) pushBin(v interface{}) {
236
// isPush returns whether the string op is either any of
237
// push(N).
238
func isPush(op string) bool {
239
- return op == "push"
+ return strings.ToUpper(op) == "PUSH"
240
}
241
242
// isJump returns whether the string op is jump(i)
243
func isJump(op string) bool {
244
- return op == "jumpi" || op == "jump"
+ return strings.ToUpper(op) == "JUMPI" || strings.ToUpper(op) == "JUMP"
245
246
247
// toBinary converts text to a vm.OpCode
0 commit comments