Awesome Open Source
Awesome Open Source

Solidity Truffle tests

Description

This repo provides truffle based tests which carry out different attacks on the commonly used contracts and libraries in the Space

Dependencies

Testrpc
Truffle

Run tests

  • Ensure you have Truffle installed
  • Run testrpc or any other ethereum node
  • Run truffle test from the repo directory

Discoveries

  • Open Zeppelin Safe Math
    • Addition:: -1 Added to 0 (overflow) : Should fail Addition - Minus:
  • Open Zeppelin Standard Token
    • Allocate Tokens :: Should fail to allocate Negative value tokens (Underflow):
    • Allocate Tokens :: Should Fail to allocate new value without updating allocation to 0:
    • Allocate Tokens :: Should fail to raise allocation by Negative value (possibly underflow):
    • Allocate Tokens :: Should fail to reduce allocation by Negative value:

Contributors

Github contributors

To contribute, kindly create an issue to indicate what you would be working on, then create a PR once code is ready.

Contribute

Buy me a Coffe or a Beer
Ethereum: 0x965D1C9987BD2c34e151E63d60AFf8E9dB6b1561

Links/ Sources


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,511,655
Library (11,223
Security (8,716
Ethereum (6,963
Solidity (6,332
Test (2,679
Truffle (707
Attack (327
Related Projects