You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 14, 2021. It is now read-only.
Unable to write tests for events when using Solidity Events #7
Such a contract will generate a javascript function that will appear as
SimpleAuction.HighestBidIncreased
But if you try to use the ABI when writing tests for ethjs, you will anger ESLint with the error:
A function with a name starting with an uppercase letter should only be used as a constructor ne
w-cap
The workaround is to write solidity contracts with events starting with a lower case character, which isn't ideal if there are linting constraints introduced in Solidity which force uppercase event names.
The convention when writing Solidity Smart Contracts is to capitalize events (http://solidity.readthedocs.io/en/develop/structure-of-a-contract.html#events) aka
Such a contract will generate a javascript function that will appear as
But if you try to use the ABI when writing tests for ethjs, you will anger ESLint with the error:
The workaround is to write solidity contracts with events starting with a lower case character, which isn't ideal if there are linting constraints introduced in Solidity which force uppercase event names.