diff --git a/dist/addresses.js b/dist/addresses.js index 2296143..411fa87 100644 --- a/dist/addresses.js +++ b/dist/addresses.js @@ -3,6 +3,10 @@ var _strings = require("./strings"); var _bytes = require("./bytes"); var _networks = _interopRequireDefault(require("./networks.json"));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} +/** + * @description Returns the zero address + * @returns {String} + */ function zeroAddress() { return (0, _strings.add0x)((0, _bytes.bufferToHex)(Buffer.allocUnsafe(20).fill(0))); } diff --git a/package-lock.json b/package-lock.json index fdb7c70..56cc8a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@rsksmart/rsk-utils", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 64a22fe..735a923 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rsksmart/rsk-utils", - "version": "1.0.0", + "version": "1.1.0", "description": "A collection of JS utility functions for RSK", "main": "dist/index.js", "scripts": {