Skip to content

Commit

Permalink
Add contract version with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rya-sge committed Sep 12, 2023
1 parent 198e869 commit b43c0d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/modules/wrapper/core/BaseModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import "../../security/AuthorizationModule.sol";
import "../../../libraries/Errors.sol";

abstract contract BaseModule is AuthorizationModule {
/*
@notice
Get the current version of the smart contract
*/
string public constant VERSION = "2.3.1";
// to initialize inside the implementation constructor when deployed with a Proxy
bool internal deployedWithProxy;
/* Events */
Expand Down
4 changes: 4 additions & 0 deletions test/common/BaseModuleCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const { should } = require('chai').should()

function BaseModuleCommon (owner, address1, address2, address3, proxyTest) {
context('Token structure', function () {
it('testHasTheDefinedVersion', async function () {
// Act + Assert
(await this.cmtat.VERSION()).should.equal('2.3.1')
})
it('testHasTheDefinedTokenId', async function () {
// Act + Assert
(await this.cmtat.tokenId()).should.equal('CMTAT_ISIN')
Expand Down

0 comments on commit b43c0d6

Please sign in to comment.