# all files / packages/web3-eth-abi/src/types/ dynamicbytes.js

100% Statements 12/12
100% Branches 0/0
100% Functions 3/3
100% Lines 12/12

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    211×
    1×

    1×
    1×
    1×

    1×
    1×

    1×
    395×

    1×
    46×

    1×
     var f = require('./formatters');
    var SolidityType = require('./type');

    var SolidityTypeDynamicBytes = function () {
        this._inputFormatter = f.formatInputDynamicBytes;
        this._outputFormatter = f.formatOutputDynamicBytes;
    };

    SolidityTypeDynamicBytes.prototype = new SolidityType({});
    SolidityTypeDynamicBytes.prototype.constructor = SolidityTypeDynamicBytes;

    SolidityTypeDynamicBytes.prototype.isType = function (name) {
        return !!name.match(/^bytes(\[([0-9]*)\])*$/);
    };

    SolidityTypeDynamicBytes.prototype.isDynamicType = function () {
        return true;
    };

    module.exports = SolidityTypeDynamicBytes;