瀏覽代碼

Check stack for BALANCE. Closes #622

obscuren 10 年之前
父節點
當前提交
96cf776f81
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/vm/gas.go

+ 1 - 1
core/vm/gas.go

@@ -142,7 +142,7 @@ var _baseCheck = map[OpCode]req{
 	MSIZE:        {0, GasQuickStep, true},
 	GAS:          {0, GasQuickStep, true},
 	BLOCKHASH:    {1, GasExtStep, true},
-	BALANCE:      {0, GasExtStep, true},
+	BALANCE:      {1, GasExtStep, true},
 	EXTCODESIZE:  {1, GasExtStep, true},
 	EXTCODECOPY:  {4, GasExtStep, false},
 	SLOAD:        {1, GasStorageGet, true},