Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
rya-sge committed Sep 25, 2023
1 parent c4b0d3b commit b420e4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 28 deletions.
Binary file modified doc/general/test/test.odt
Binary file not shown.
Binary file modified doc/general/test/test.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions test/common/ERC20BaseModuleCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function BaseModuleCommon (admin, address1, address2, address3, proxyTest) {
)
})

it('testCannotTransferBatchIfLengthMismatch_1', async function () {
it('testCannotTransferBatchIfLengthMismatchMissingAddresses', async function () {
// Number of addresses is insufficient
const TOKEN_ADDRESS_TOS_INVALID = [address1, address2]
await expectRevertCustomError(
Expand All @@ -398,7 +398,7 @@ function BaseModuleCommon (admin, address1, address2, address3, proxyTest) {
)
})

it('testCannotTransferBatchIfLengthMismatch_2', async function () {
it('testCannotTransferBatchIfLengthMismatchTooManyAddresses', async function () {
// There are too many addresses
const TOKEN_ADDRESS_TOS_INVALID = [
address1,
Expand Down
27 changes: 1 addition & 26 deletions test/proxy/general/Proxy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,7 @@ contract(

context('Attacker', function () {
// Here the argument to indicate if it is deployed with a proxy, set at false by the attacker
it('testCannotBeTakenControlByAttacker1', async function () {
await expectRevertCustomError(
this.implementationContract.initialize(
attacker,
BigInt(time.duration.days(3)),
'CMTA Token',
'CMTAT',
DECIMAL,
'CMTAT_ISIN',
'https://cmta.ch',
ZERO_ADDRESS,
'CMTAT_info',
DEPLOYMENT_FLAG,
{ from: attacker }
),
'InvalidInitialization',
[]
)
await expectRevertCustomError(
this.implementationContract.pause({ from: attacker }),
'AccessControlUnauthorizedAccount',
[attacker, PAUSER_ROLE]
)
})
// Here the argument to indicate if it is deployed with a proxy, set at true by the attacker
it('testCannotBeTakenControlByAttacker2', async function () {
it('testCannotBeTakenControlByAttacker', async function () {
await expectRevertCustomError(
this.implementationContract.initialize(
attacker,
Expand Down

0 comments on commit b420e4c

Please sign in to comment.