Files
openzeppelin-contracts/scripts/generate/templates/EnumerableSet.opts.js
Hadrien Croubois bfdbb67ebc Release v5.3 cherrypick #3 (#5572)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
2025-03-17 11:29:32 +01:00

13 lines
301 B
JavaScript

const { capitalize } = require('../../helpers');
const mapType = str => (str == 'uint256' ? 'Uint' : capitalize(str));
const formatType = type => ({
name: `${mapType(type)}Set`,
type,
});
const TYPES = ['bytes32', 'address', 'uint256'].map(formatType);
module.exports = { TYPES, formatType };