From d87affcbf67339271dcd622d7ab38d90e503e18c Mon Sep 17 00:00:00 2001 From: Petar Dambovaliev Date: Fri, 22 Nov 2024 18:26:54 +0900 Subject: [PATCH] save --- gnovm/pkg/gnolang/machine.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gnovm/pkg/gnolang/machine.go b/gnovm/pkg/gnolang/machine.go index f55938f9f4c..aac8b4f5802 100644 --- a/gnovm/pkg/gnolang/machine.go +++ b/gnovm/pkg/gnolang/machine.go @@ -1288,13 +1288,7 @@ func (m *Machine) Run() { if r != nil { switch r := r.(type) { case *Exception: - panicStmt := &PanicStmt{ - Exception: &BasicLitExpr{Value: `"` + r.Sprint(m) + `"`, Kind: STRING}, - } - - m.PushStmt(panicStmt) - m.PushOp(OpExec) - + m.Panic(r.Value) m.Run() default: panic(r)