make the existing plugins explicitly extend LaserPlugin

pull/980/head
Joran Honig 6 years ago
parent 27d2486c2e
commit ba917ec5d6
  1. 3
      mythril/laser/ethereum/plugins/implementations/benchmark.py
  2. 3
      mythril/laser/ethereum/plugins/implementations/mutation_pruner.py

@ -1,4 +1,5 @@
from mythril.laser.ethereum.svm import LaserEVM
from mythril.laser.ethereum.plugins import LaserPlugin
from time import time
import matplotlib.pyplot as plt
import logging
@ -6,7 +7,7 @@ import logging
log = logging.getLogger(__name__)
class BenchmarkPlugin:
class BenchmarkPlugin(LaserPlugin):
"""Benchmark Plugin
This plugin aggregates the following information:

@ -1,6 +1,7 @@
from mythril.laser.ethereum.state.annotation import StateAnnotation
from mythril.laser.ethereum.svm import LaserEVM
from mythril.laser.ethereum.plugins.signals import PluginSkipWorldState
from mythril.laser.ethereum.plugins import LaserPlugin
from mythril.laser.ethereum.state.global_state import GlobalState
from mythril.laser.ethereum.transaction.transaction_models import (
ContractCreationTransaction,
@ -17,7 +18,7 @@ class MutationAnnotation(StateAnnotation):
pass
class MutationPruner:
class MutationPruner(LaserPlugin):
"""Mutation pruner plugin
Let S be a world state from which T is a symbolic transaction, and S' is the resulting world state.

Loading…
Cancel
Save