Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 90d8f9e

Browse files
committed
fix: πŸ› string to bytes to convert label on addModuleWithLabel
1 parent 562b7f5 commit 90d8f9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žexamples/countTransferManager.tsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,13 @@ window.addEventListener('load', async () => {
9696
];
9797

9898
// Call to add count transfer manager module with max 3 holders
99-
await tickerSecurityTokenInstance.addModule({
99+
await tickerSecurityTokenInstance.addModuleWithLabel({
100100
moduleName,
101101
address: modules[index],
102102
maxCost: setupCost,
103103
budget: setupCost,
104104
archived: false,
105+
label: 'CTM Test',
105106
data: {
106107
maxHolderCount: randomBeneficiaries.length + 1,
107108
},

β€Žsrc/contract_wrappers/tokens/security_token_wrapper.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
15381538
producedAddModuleInfo.data,
15391539
producedAddModuleInfo.maxCost,
15401540
producedAddModuleInfo.budget,
1541-
params.label ? params.label : '',
1541+
params.label ? stringToBytes32(params.label) : '',
15421542
params.archived,
15431543
params.txData,
15441544
params.safetyFactor,

0 commit comments

Comments
Β (0)