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

Commit 0da5d44

Browse files
author
Victor Wiebe
committed
fix: refactor mapping to reduce amount of code needed
1 parent 263bbdc commit 0da5d44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/contract_wrappers/tokens/security_token_wrapper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,9 +913,7 @@ export default class SecurityTokenWrapper extends ERC20TokenWrapper {
913913

914914
public partitionsOf = async (params: PartitionsOfParams): Promise<Partition[]> => {
915915
const partitions = await (await this.contract).partitionsOf.callAsync(params.tokenHolder);
916-
return partitions.map(element => {
917-
return parsePartitionBytes32Value(element);
918-
});
916+
return partitions.map(parsePartitionBytes32Value);
919917
};
920918

921919
/**

0 commit comments

Comments
 (0)