Skip to content

Commit

Permalink
Merge pull request #229 from CMTA/version
Browse files Browse the repository at this point in the history
Add contract version
  • Loading branch information
rya-sge authored Sep 12, 2023
2 parents 21a2584 + b43c0d6 commit d6588a7
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 d6588a7

Please sign in to comment.