Fixed ERC20 burnable to use the correct properties

pull/954/head
Gustavo Grieco 3 years ago committed by GitHub
parent 3b1a07ea05
commit dad41154ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      slither/tools/properties/properties/erc20.py

@ -9,7 +9,7 @@ from crytic_compile.platform import Type as PlatformType
from slither.core.declarations import Contract from slither.core.declarations import Contract
from slither.tools.properties.addresses.address import Addresses from slither.tools.properties.addresses.address import Addresses
from slither.tools.properties.platforms.echidna import generate_echidna_config from slither.tools.properties.platforms.echidna import generate_echidna_config
from slither.tools.properties.properties.ercs.erc20.properties.burn import ERC20_NotBurnable from slither.tools.properties.properties.ercs.erc20.properties.burn import ERC20_NotBurnable, ERC20_NotBurnable
from slither.tools.properties.properties.ercs.erc20.properties.initialization import ERC20_CONFIG from slither.tools.properties.properties.ercs.erc20.properties.initialization import ERC20_CONFIG
from slither.tools.properties.properties.ercs.erc20.properties.mint import ERC20_NotMintable from slither.tools.properties.properties.ercs.erc20.properties.mint import ERC20_NotMintable
from slither.tools.properties.properties.ercs.erc20.properties.mint_and_burn import ( from slither.tools.properties.properties.ercs.erc20.properties.mint_and_burn import (
@ -44,7 +44,7 @@ ERC20_PROPERTIES = {
), ),
"NotBurnable": PropertyDescription(ERC20_NotBurnable, "Test that no one can burn tokens"), "NotBurnable": PropertyDescription(ERC20_NotBurnable, "Test that no one can burn tokens"),
"Burnable": PropertyDescription( "Burnable": PropertyDescription(
ERC20_NotBurnable, ERC20_Burnable,
'Test the burn of tokens. Require the "burn(address) returns()" function', 'Test the burn of tokens. Require the "burn(address) returns()" function',
), ),
} }

Loading…
Cancel
Save